mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 18:13:58 +00:00
tests: Optimize test-backend performance.
This optimizes test-backend by skipping webhook tests when run in default mode. Tweaked by tabbott to extend the documentation and update the CI commands.
This commit is contained in:
committed by
Tim Abbott
parent
c78c3f423c
commit
4dc7f5354d
@@ -51,6 +51,14 @@ iterative development, but you can override this behavior with the
|
||||
the `--rerun` option, which will rerun just the tests that failed in
|
||||
the last test run.
|
||||
|
||||
**Webhook integrations**. For performance, `test-backend` with no
|
||||
arguments will not run webhook integration tests (`zerver/webhooks/`),
|
||||
which would otherwise account for about 25% of the total runtime.
|
||||
When working on webhooks, we recommend instead running `test-backend
|
||||
zerver/webhooks` manually (or better, the direction for the specific
|
||||
webhooks you're working on). And of course our CI is configured to
|
||||
always use `test-backend --include-webhooks` and run all of the tests.
|
||||
|
||||
## Writing tests
|
||||
|
||||
Before you write your first tests of Zulip, it is worthwhile to read
|
||||
|
||||
Reference in New Issue
Block a user