I'm using RSpec as an API test harness that does not have a database during testing, and would like to parallelize the runs. I've tried https://github.com/grosser/parallel_tests but the rake task fails when there is no database with Don't know how to build task "'parallel:spec'"
.
I then moved to the deprecated https://github.com/yuku/parallel-rspec which worked, but it's not passing the arguments I've been using to filter tests correctly.
For example, if I had 10 tests, 2 of which had metadata feature=search
would historically run:
bundle exec rspec --tag feature:search
And only those 2 tests would be run.
Now running
`` bundle exec parallel-rspec spec --tag feature:search
still runs all 10 tests.
How can I split up my specs into parallel runs while still preserving the ability to filter by metadata?
Aucun commentaire:
Enregistrer un commentaire