Sha256: cd046933c265900cf99dbf3eaa6224464291088c67af89a86b2446c6dbb8f5ba
Contents?: true
Size: 945 Bytes
Versions: 2
Compression:
Stored size: 945 Bytes
Contents
require "bundler/gem_tasks" require 'coveralls/rake/task' require 'racatt' namespace 'cuke_modeler' do task :clear_coverage do code_coverage_directory = "#{File.dirname(__FILE__)}/coverage" FileUtils.remove_dir(code_coverage_directory, true) end Racatt.create_tasks # Redefining the task from 'racatt' in order to clear the code coverage results task :test_everything => :clear_coverage # The task that CI will use Coveralls::RakeTask.new task :ci_build => [:smart_test, 'coveralls:push'] desc 'Test gem based on Ruby/dependency versions' task :smart_test do |t, args| rspec_args = '' cucumber_args = Gem.loaded_specs['gherkin'].version.version[/^3/] ? '-t ~@gherkin' : '-t ~@gherkin3' cucumber_args += ' -f progress' Rake::Task['cuke_modeler:test_everything'].invoke(rspec_args, cucumber_args) end end task :default => 'cuke_modeler:smart_test'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cuke_modeler-0.2.0 | Rakefile |
cuke_modeler-0.1.0 | Rakefile |