Sha256: cb7640811ca4271298fd12bc4ed3b9044975e48a9681d934c3c45d639641690d

Contents?: true

Size: 990 Bytes

Versions: 7

Compression:

Stored size: 990 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 = '--tag ~@wip --pattern testing/rspec/spec/**/*_spec.rb'
    cucumber_args = 'testing/cucumber/features -r testing/cucumber/support -r testing/cucumber/step_definitions -f progress -t ~@wip'

    Rake::Task['cuke_modeler:test_everything'].invoke(rspec_args, cucumber_args)
  end

end


task :default => 'cuke_modeler:smart_test'

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
cuke_modeler-1.2.1 Rakefile
cuke_modeler-1.2.0 Rakefile
cuke_modeler-1.1.1 Rakefile
cuke_modeler-1.1.0 Rakefile
cuke_modeler-1.0.4 Rakefile
cuke_modeler-1.0.3 Rakefile
cuke_modeler-1.0.2 Rakefile