From 8af61cdbe5f9245364b8b55910f50b7b841ed3d2 Mon Sep 17 00:00:00 2001 From: miroslavpojer Date: Mon, 21 Oct 2024 11:22:32 +0200 Subject: [PATCH] - Replace code root dir by . to add all python file. --- .github/workflows/test.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f68b3d1b..710a967f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -102,7 +102,7 @@ jobs: run: echo "PYTHONPATH=${GITHUB_WORKSPACE}/release_notes_generator/release_notes_generator" >> $GITHUB_ENV - name: Build and run unit tests - run: pytest --cov=release_notes_generator --cov-report=html tests/ -vv + run: pytest --cov=. --cov-report=html tests/ -vv - name: Check overall coverage run: | diff --git a/README.md b/README.md index 4ede155d..60622e5e 100644 --- a/README.md +++ b/README.md @@ -347,7 +347,7 @@ This will execute all tests located in the tests directory. Code coverage is collected using pytest-cov coverage tool. To run the tests and collect coverage information, use the following command: ``` -pytest --cov=release_notes_generator --cov-report=html tests/ +pytest --cov=. --cov-report=html tests/ ``` This will execute all tests located in the tests directory and generate a code coverage report.