Skip to content

Commit

Permalink
feat(test): change pyproject to disable benchmark test by default
Browse files Browse the repository at this point in the history
  • Loading branch information
jacquesfize committed Sep 30, 2024
1 parent 30e42d9 commit 6acc775
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
GEONATURE_CONFIG_FILE: config/test_config.toml
- name: Test with pytest
run: |
pytest -v --cov --cov-report xml --benchmark-skip
pytest -v --cov --cov-report xml
env:
GEONATURE_CONFIG_FILE: config/test_config.toml
- name: Upload coverage to Codecov
Expand Down
8 changes: 1 addition & 7 deletions docs/tests_backend.rst
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,7 @@ Cette fonctionnalité s'appuie sur ``pytest`` et son extension ``pytest-benchmar
Lancement des tests de performances
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Il existe différentes manières de lancer les tests de performances:
- La commande ``pytest`` sans arguments. Cette dernière lancera les tests de performances en plus des tests unitaires.
- La commande ``pytest --benchmark-only`` qui lancera uniquement les tests de performances.



Pour lancer les tests de performances, utiliser la commande suivante : ``pytest --benchmark-only``


Ajouter des tests de performances
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ minversion = "6.0"
testpaths = [
"backend/geonature/tests/",
]
addopts = "--benchmark-skip"

[tool.coverage.run]
source = [
Expand Down

0 comments on commit 6acc775

Please sign in to comment.