Readme.md in parallel_tests-0.9.3 vs Readme.md in parallel_tests-0.9.4
- old
+ new
@@ -63,20 +63,30 @@
843 examples, 0 failures, 1 pending
Took 29.925333 seconds
+### Run an arbitrary task in parallel
+```Bash
+RAILS_ENV=test parallel_test -e "rake my:custom:task"
+# or
+rake parallel:rake[my:custom:task]
+```
+
+
Running things once
===================
```Ruby
# effected by race-condition: first process may boot slower the second
# either sleep a bit or use a lock for example File.lock
ParallelTests.first_process? ? do_something : sleep(1)
at_exit do
- ParallelTests.wait_for_other_processes_to_finish
- undo_something
+ if ParallelTests.first_process?
+ ParallelTests.wait_for_other_processes_to_finish
+ undo_something
+ end
end
```
Loggers
===================