Sha256: 9b93d50e13345c4a6340abc26369027894fb740489371f628a3f0e5a827b0dbc

Contents?: true

Size: 585 Bytes

Versions: 20

Compression:

Stored size: 585 Bytes

Contents

require 'rspec/core/rake_task'

namespace :test do

  desc "Run RSpec unit tests"
  RSpec::Core::RakeTask.new(:unit) do |t|
    t.pattern = "spec/unit/**/test_*.rb"
    t.rspec_opts = %{-Ilib -Ispec --color --backtrace --format progress --format RspecJunitFormatter --out spec/rspec-unit.xml}
  end

  desc "Run the tests in the examples folder"
  task :example do
    Bundler.with_original_env do
      system("cd example && bundle exec rake")
      abort("Example tests failed") unless $?.exitstatus == 0
    end
  end

  task :all => [:unit, :example]
end
task :test => :'test:all'

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
startback-0.12.3 tasks/test.rake
startback-0.12.2 tasks/test.rake
startback-0.12.1 tasks/test.rake
startback-0.12.0 tasks/test.rake
startback-0.11.5 tasks/test.rake
startback-0.11.4 tasks/test.rake
startback-0.11.3 tasks/test.rake
startback-0.11.0 tasks/test.rake
startback-0.10.1 tasks/test.rake
startback-0.10.0 tasks/test.rake
startback-0.9.1 tasks/test.rake
startback-0.9.0 tasks/test.rake
startback-0.8.3 tasks/test.rake
startback-0.8.2 tasks/test.rake
startback-0.8.1 tasks/test.rake
startback-0.8.0 tasks/test.rake
startback-0.7.6 tasks/test.rake
startback-0.7.5 tasks/test.rake
startback-0.7.4 tasks/test.rake
startback-0.7.3 tasks/test.rake