@@ -23,12 +23,12 @@ namespace :test do
23
23
Rake ::Task [ 'ci:setup:minitest' ] . invoke
24
24
end
25
25
26
- Rake ::TestTask . new ( :unit ) do |test |
26
+ Rake ::TestTask . new ( :run_unit ) do |test |
27
27
Rake ::Task [ 'test:ci_reporter' ] . invoke if ENV [ 'CI' ]
28
28
test . libs << 'lib' << 'test'
29
29
test . test_files = FileList [ "test/unit/**/*_test.rb" ]
30
- # test.verbose = true
31
- # test.warning = true
30
+ test . verbose = false
31
+ test . warning = false
32
32
end
33
33
34
34
Rake ::TestTask . new ( :run_integration ) do |test |
@@ -39,9 +39,16 @@ namespace :test do
39
39
test . warning = false
40
40
end
41
41
42
+ desc "Run unit tests against ActiveModel 3, 4 and 5"
43
+ task :unit do
44
+ sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/3.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_unit"
45
+ sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/4.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_unit"
46
+ sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/5.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_unit"
47
+ end
48
+
42
49
desc "Run integration tests against ActiveModel 3, 4 and 5"
43
50
task :integration do
44
- sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/3.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_integration" unless defined? ( RUBY_VERSION ) && RUBY_VERSION > '2.2'
51
+ sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/3.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_integration"
45
52
sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/4.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_integration"
46
53
sh "BUNDLE_GEMFILE='#{ File . expand_path ( '../gemfiles/5.0.gemfile' , __FILE__ ) } ' bundle exec rake test:run_integration"
47
54
end
0 commit comments