Skip to content

Commit

Permalink
Skip integ/smoke tests that do not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Dec 14, 2023
1 parent 0a18db4 commit ea290c1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ desc 'Executes all smoke tests'
rule 'test:smoke' do
failures = []
Dir.glob('gems/*/features').each do |dir|
next unless File.exist?(File.join(dir, 'smoke.feature'))

gem_name = dir.match(%r{gems/(.*)/features})[1]
sh("bundle exec rake test:smoke:#{gem_name}") do |ok, _|
failures << File.basename(File.dirname(dir)) unless ok
Expand All @@ -78,6 +80,8 @@ desc 'Executes all integration tests'
task 'test:integration' do
failures = []
Dir.glob('gems/*/features').each do |dir|
next unless Dir.glob(File.join(dir, '**', '*.feature')).any?

gem_name = dir.match(%r{gems/(.*)/features})[1]
sh("bundle exec rake test:integration:#{gem_name}") do |ok, _|
failures << File.basename(File.dirname(dir)) unless ok
Expand All @@ -100,6 +104,8 @@ desc 'Executes all feature tests'
task 'test:features' do
failures = []
Dir.glob('gems/*/features').each do |dir|
next unless Dir.glob(File.join(dir, '**', '*.feature')).any?

gem_name = dir.match(%r{gems/(.*)/features})[1]
sh("bundle exec rake test:features:#{gem_name}") do |ok, _|
failures << File.basename(File.dirname(dir)) unless ok
Expand Down

0 comments on commit ea290c1

Please sign in to comment.