Rakefile in amber_component-0.0.2 vs Rakefile in amber_component-0.0.3
- old
+ new
@@ -6,10 +6,26 @@
::Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.libs << 'test'
t.libs << 'test/fixtures'
# ignore tests of rails apps
- t.test_files = ::FileList['test/**/*_test.rb'] - ::FileList['test/apps/**/*_test.rb']
+ t.test_files = ::FileList['test/**/*_test.rb'] - ::FileList['test/dummy/**/*_test.rb']
+end
+
+::Rake::TestTask.new('test:unit') do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.libs << 'test/fixtures'
+ # ignore tests of rails apps
+ t.test_files = ::FileList['test/unit/**/*_test.rb']
+end
+
+::Rake::TestTask.new('test:integration') do |t|
+ t.libs << 'lib'
+ t.libs << 'test'
+ t.libs << 'test/fixtures'
+ # ignore tests of rails apps
+ t.test_files = ::FileList['test/integration/**/*_test.rb']
end
require 'rubocop/rake_task'
::RuboCop::RakeTask.new