vault backup: 2025-01-23 08:49:54
This commit is contained in:
@ -32,5 +32,5 @@ tags:
|
||||
- 透過``-n``引數調用,例如``pytest -n auto``
|
||||
- 若測試物件之間有依賴性,可使用xdist_group_mark將物件分群,同群的物件將會在同一行程內執行
|
||||
- 平行化通常伴隨更多資源的消耗,使用時需小心~
|
||||
- 善用[Fixture](https://docs.pytest.org/en/stable/explanation/fixtures.html#sharing-test-data)將某些資料暫存給後續測試使用,進一步節省測試時間
|
||||
- 善用[Fixture](https://docs.pytest.org/en/stable/explanation/fixtures.html#sharing-test-data)將某些資料共享或暫存給其他測試使用,進一步節省測試時間
|
||||
- Pytest也支援[pyproject.toml](https://docs.pytest.org/en/stable/reference/customize.html#pyproject-toml)進行配置哦
|
Reference in New Issue
Block a user