mirror of
https://github.com/khoj-ai/khoj.git
synced 2025-02-17 08:04:21 +00:00
Run pytests in parallel on multiple CPU cores using pytest-xdist for speed
This commit is contained in:
parent
148e8f468f
commit
72f8fde7ef
1 changed files with 2 additions and 1 deletions
|
@ -79,6 +79,7 @@ test = [
|
||||||
"freezegun >= 1.2.0",
|
"freezegun >= 1.2.0",
|
||||||
"factory-boy >= 3.2.1",
|
"factory-boy >= 3.2.1",
|
||||||
"trio >= 0.22.0",
|
"trio >= 0.22.0",
|
||||||
|
"pytest-xdist",
|
||||||
]
|
]
|
||||||
dev = [
|
dev = [
|
||||||
"khoj-assistant[test]",
|
"khoj-assistant[test]",
|
||||||
|
@ -111,7 +112,7 @@ warn_unused_ignores = false
|
||||||
line-length = 120
|
line-length = 120
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "--strict-markers"
|
addopts = "--strict-markers -n 4"
|
||||||
markers = [
|
markers = [
|
||||||
"chatquality: Evaluate chatbot capabilities and quality",
|
"chatquality: Evaluate chatbot capabilities and quality",
|
||||||
]
|
]
|
||||||
|
|
Loading…
Add table
Reference in a new issue