Add integration tests with capybara (#1707)

* Add integration tests with capybara
* Add Rake task for running integration tests
* Don't include integration in default test task
This commit is contained in:
Dawa Ometto
2022-06-19 00:51:58 +02:00
committed by GitHub
parent a1406da44a
commit 98cb39347d
4 changed files with 69 additions and 1 deletions
+13 -1
View File
@@ -72,9 +72,21 @@ end
task :default => :test
require 'rake/testtask'
namespace :test do
Rake::TestTask.new('capybara') do |test|
test.libs << 'lib' << 'test' << '.'
test.pattern = 'test/integration/**/test_*.rb'
test.verbose = true
test.warning = false
end
end
Rake::TestTask.new(:test) do |test|
test.libs << 'lib' << 'test' << '.'
test.pattern = 'test/**/test_*.rb'
test.test_files = FileList.new('test/**/test_*.rb') do |fl|
fl.exclude('test/integration/**/test_*.rb')
end
test.verbose = true
test.warning = false
end