grosser / parallel_tests

Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
3.38k stars 495 forks source link

test-options tag isn't filtering correctly #352

Closed aaronhumerickhouse closed 9 years ago

aaronhumerickhouse commented 9 years ago

I'm trying to execute tests based on RSpec tags. I have one file with the tag :test => true

Here's the RSpec runner.

🔥  11:11 AM {parallel} ~/sportngin/selenium-tests$ rspec -t test
.

Finished in 32.4 seconds (files took 0.43208 seconds to load)
1 example, 0 failures

Note 1 example.

Here's parallel_rpsec with the -o flag, as well as the --test-options flag

🔥  11:12 AM {parallel} ~/sportngin/selenium-tests$ parallel_rspec -o '-t test'
8 processes for 0 specs, ~ 0 specs per process  

Took 0.009742 seconds

🔥  11:12 AM {paralel} ~/sportngin/selenium-tests$ parallel_rspec --test-options '--tag test'
8 processes for 0 specs, ~ 0 specs per process    

Took 0.011186 seconds    

Both cases result in 0 specs found.

aaronhumerickhouse commented 9 years ago

My apologies. I thought specifying the tag would assume to search through all files first.

parallel_rspec spec -o '-t test'