Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b2172a7
Showing
5 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# encoding: UTF-8 | ||
require "spec/rake/spectask" | ||
require "cucumber" | ||
require "cucumber/rake/task" | ||
|
||
task :default => :spec | ||
|
||
desc "Run Cucumber Features" | ||
Cucumber::Rake::Task.new do |t| | ||
t.cucumber_opts = "-c -n" | ||
end | ||
|
||
desc "Run all of the specs" | ||
Spec::Rake::SpecTask.new do |t| | ||
t.spec_opts = ['--options', "spec/spec.opts"] | ||
t.fail_on_error = false | ||
end | ||
|
||
namespace :spec do | ||
|
||
desc "Generate HTML report for failing examples" | ||
Spec::Rake::SpecTask.new('report') do |t| | ||
t.spec_files = FileList['failing_examples/**/*.rb'] | ||
t.spec_opts = ["--format", "html:doc/tools/reports/failing_examples.html", "--diff", '--options', '"spec/spec.opts"'] | ||
t.fail_on_error = false | ||
end | ||
|
||
desc "Run all spec with RCov" | ||
Spec::Rake::SpecTask.new(:rcov) do |t| | ||
t.rcov = true | ||
t.rcov_dir = 'doc/tools/coverage/' | ||
t.rcov_opts = ['--exclude', 'spec'] | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# encoding: UTF-8 | ||
unless defined?(QUSION_ROOT) | ||
QUSION_ROOT = File.dirname(__FILE__) + '/' | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-f specdoc -c -t 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# encoding: UTF-8 | ||
require 'rubygems' | ||
|
||
require File.dirname(__FILE__) + '/../lib/qusion.rb' | ||
|
||
Spec::Runner.configure do |config| | ||
config.mock_with :mocha | ||
end | ||
|
||
include Qusion | ||
|