Skip to content

Commit

Permalink
Stabilizing RSpec arguments
Browse files Browse the repository at this point in the history
Adding quotes around the testing pattern in order to prevent the
various command line shells that runs the tests from ruining the
pattern (which was the root cause of some tests not getting run).
  • Loading branch information
enkessler committed Mar 19, 2019
1 parent aae530d commit 4672ddb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 1 addition & 3 deletions Rakefile
Expand Up @@ -19,9 +19,7 @@ namespace 'cuke_linter' do

desc 'Run all of the tests'
task :test_everything => [:clear_coverage] do
test_files = Dir.glob('testing/rspec/spec/**{,/*/**}/*_spec.rb')
puts "files matching pattern (#{test_files.count}): #{test_files}"
rspec_args = '--pattern testing/rspec/spec/**{,/*/**}/*_spec.rb -f d'
rspec_args = '--pattern "testing/rspec/spec/**/*_spec.rb"'
cucumber_args = "testing/cucumber/features -r environments/cucumber_env.rb -f progress -t 'not @wip'"

Rake::Task['racatt:test_everything'].invoke(rspec_args, cucumber_args)
Expand Down
2 changes: 0 additions & 2 deletions environments/rspec_env.rb
Expand Up @@ -42,5 +42,3 @@
end

end

puts "RSpec - files to run #{RSpec.configuration.files_to_run.count}: #{RSpec.configuration.files_to_run}"

0 comments on commit 4672ddb

Please sign in to comment.