CI unit test improvements (#13257)

Speed improvements for backend CI testing

- Use different coverage tool
- Optimize plugin reloading during tests
- Mock longer running processes
- Adjust postgres configuration
- Reduce test setup time
This commit is contained in:
Oliver authored and GitHub committed 2026-11-13 07:35:11 +11:00
1 parent 6387ae95e1
commit cdfa7f1921
11 files changed
+141 -50

No files matched your search

+4 -4
View File
@@ -118,12 +118,12 @@ unused-ignore-comment = "error"
[tool.coverage.run]
source = ["src/backend/InvenTree", "InvenTree"]
dynamic_context = "test_function"
# sys.monitoring based measurement (Python 3.12+) is much faster than the default tracer.
# Note: sysmon does not support 'dynamic_context', so per-test contexts are not recorded.
# On older Python versions, coverage falls back to the default core (with a warning).
core = "sysmon"
omit = ["*/test_migrations.py", "*/migrations/*"]
[tool.coverage.html]
show_contexts = true
[tool.djlint]
ignore = "D018,H006,H008,H020,H021,H023,H025,H030,H031,T002"