From 69da1795b78841a8ffb44c5da5fc0011c6d02de9 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Fri, 9 Feb 2024 16:50:16 +0200 Subject: Refactoring tests some more. --- doc/DEV.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 doc/DEV.md (limited to 'doc/DEV.md') diff --git a/doc/DEV.md b/doc/DEV.md new file mode 100644 index 0000000..6f3eec4 --- /dev/null +++ b/doc/DEV.md @@ -0,0 +1,16 @@ +# Ohjeita kehitykseen +## Riippuvuuksien asennus: +`PYTHON_KEYRING_BACKEND=keyring.backends.fail.Keyring poetry install --no-root` + +## Aja pytest: +`poetry run python3 -m pytest` + +## Generoi haarakattavuusraportti: +`poetry run python3 -m coverage run --branch -m pytest -v && poetry run python3 -m coverage html && firefox htmlcov/index.html` + +## Linttaus: +`poetry run python3 -m pylint -v .` + +## Kaikki samassa: +`poetry run python3 -m coverage run --branch -m pytest -v && poetry run python3 -m coverage html && firefox htmlcov/index.html && poetry run python3 -m pylint -v .` + -- cgit v1.2.3