ZipMessage Tests Commands
When we overhauled and improved our tests suite in October 2022, Aarthi set up the following commands to run our tests.
Brian set up terminal shortcuts on his macs for each of these commands (those are noted below each command for Brian's reference).
Run all tests in parallel + retest failures once
Runs all tests, including all feature tests, using the parellel test run system.
After running all, this command will also re-run the failures, once.
Brian's terminal shortcut: zmtests_all
Run all tests except for feature tests
Since feature tests are slower to run and fail more often, we can exclude them and run all of our non-feature tests using this command. Runs in parallel.
Brian's terminal shortcut: zmtests_non_features
Run all tests with important
tag, except for feature tests
important
tag, except for feature testsWe can narrow down our non-feature tests run only to those with important
tag using this command. Runs in parallel.
Brian's terminal shortcut: zmtests_important_non_features
Run all important
tests in parallel
important
tests in parallelRun all tests with important
tag, including both feature and non-feature tests. Runs in parallel.
Brian's terminal shortcut: zmtests_important
Run all stripe
tests in parallel
stripe
tests in parallelRuns all tests related to Stripe, which are those that have the stripe
tag. This includes some tests that also have stripe_live
, which hits the Stripe API (doesn't use stubs) and uses Stripe Test Mode. Our tests clean up after themselves by deleting Stripe Test mode data after running.
Brian's terminal shortcut: zmtests_stripe
Run all throttling
tests in parallel
throttling
tests in parallelThese are tests that take extra time to run, so we can test these separately using this:
Brian's terminal shortcut: zmtests_throttled
Run only feature tests in non-parallel
Runs all feature tests (all tests inside features
folder) and runs them in a single process, not in parallel. This is slower to run, but more reliable as feature tests sometimes have failures only when run in parellel.
Brian's terminal shortcut: zmtests_features
Run only important feature tests in non-parallel
Runs all feature tests that have important
tag and runs them in a single process, not in parallel. This is slower to run, but more reliable as feature tests sometimes have failures only when run in parellel.
Brian's terminal shortcut: zmtests_important_features
Last updated