Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ParallelTests.last_process? retuns true if the process is the last one to start. We are interested in the last test to finish so we want to use ParallelTests.number_of_running_processes Because it's possible to have the parallel_tests gem in your project and still run tests serially we want to also check if tests are currently being run in parallel. If ENV['TEST_ENV_NUMBER'] is defined we know tests are currently being run in parallel.
- Loading branch information