Guest User

Untitled

a guest
Jun 22nd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. require 'rubygems'
  2. require 'rake/testtask'
  3. gem 'ci_reporter'
  4. require 'ci/reporter/rake/test_unit'
  5.  
  6. Rake::TestTask.new(:testNonDB) do |t| # Add a testtask called testNonDB
  7. t.pattern = 'test/nonDB/**/*_test.rb' # Include everything in the test/nonDB directory with the suffix _test.rb
  8. t.verbose = true
  9. t.warning = true
  10. end
  11.  
  12. Rake::TestTask.new(:testInvolvingDB) do |t| # Add a testtask called testInvolvingDB
  13. t.pattern = 'test/involvingDB/**/*_test.rb' # Include everything in the test/involvingDB directory with the suffix _test.rb
  14. t.verbose = true
  15. t.warning = true
  16. end
  17.  
  18. task :testNonDB => ['ci:setup:testunit']
  19. task :testInvolvingDB => ['ci:setup:testunit']
Add Comment
Please, Sign In to add comment