oncall-engine/engine/apps/integrations/tests
Joey Orlando aca2804502
add pytest-xdist to speed up backend tests (#3839)
# What this PR does

Speeds up `pytest` test execution by ~30%.

More specifically, adds
[`pytest-xdist`](https://pytest-xdist.readthedocs.io/en/stable/), which
according to their docs:
> plugin extends pytest with new test execution modes, the most used
being distributing tests across multiple CPUs to speed up test execution

**Before**
<img width="270" alt="Screenshot 2024-02-05 at 15 53 13"
src="https://github.com/grafana/oncall/assets/9406895/4da33299-5bd0-4dc3-86e1-32cfdf9106f7">

**After**
<img width="254" alt="Screenshot 2024-02-05 at 15 53 04"
src="https://github.com/grafana/oncall/assets/9406895/a59eeb52-291d-4cdc-82b2-55fd31e1c1c5">
2024-02-05 16:04:15 -05:00
..
__init__.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_heartbeat_metadata.py Remove integration html instructions (#2627) 2023-07-25 04:31:28 +00:00
test_legacy_alertmanager.py Polish amv2 (#2701) 2023-08-01 13:13:58 +08:00
test_ratelimit.py Use periodic task for heartbeats (#2723) 2023-08-10 02:25:00 +00:00
test_tasks.py World, meet OnCall! 2022-06-03 08:09:47 -06:00
test_views.py add pytest-xdist to speed up backend tests (#3839) 2024-02-05 16:04:15 -05:00