Files
ubicloud/.gitignore
Jeremy Evans f07afc755c Automatically use parallel testing in Rakefile
If a developer runs `rake setup_database[test,1]`, create a
`.auto-parallel-tests` file to let the Rakefile know to use
parallel testing by default.

Create *sspec tasks for every *pspec task.  The *sspec tasks
force serial execution (rspec instead of turbo_tests), and are
useful for debugging parallel testing issues.  The *pspec tasks
force parallel execution, and will fail if the parallel test
databases have not been setup.  The *spec tasks check for the
`.auto-parallel-tests` file, and run in parallel mode if it
is present and has content "1", and in serial mode otherwise.

Fix setup_database to clamp the number of created databases to
6, since the parallel tests are clamped to 6 processes.

To force serial mode always, even when using
`rake setup_database[test,1]`, manually modify the
`.auto-parallel-tests` file to have content other than "1".
2024-10-28 16:32:18 -07:00

615 B