aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-06-12 19:46:31 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-06-12 19:46:31 +0300
commite2064b4f8831495472a5e410295bacc07b9da6b8 (patch)
tree55e072687ebc7dac3a54a8829b61736e41aef63a
parentFix Script Count In Documentation (diff)
Uses .coveragerc File
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--.coveragerc5
-rw-r--r--.github/workflows/lint-test.yml2
-rw-r--r--pyproject.toml2
3 files changed, 7 insertions, 2 deletions
diff --git a/.coveragerc b/.coveragerc
new file mode 100644
index 000000000..d572bd705
--- /dev/null
+++ b/.coveragerc
@@ -0,0 +1,5 @@
+[run]
+branch = true
+source =
+ bot
+ tests
diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml
index 35e02f0d3..512e30771 100644
--- a/.github/workflows/lint-test.yml
+++ b/.github/workflows/lint-test.yml
@@ -99,7 +99,7 @@ jobs:
- name: Run tests and generate coverage report
run: |
- pytest -n auto --cov bot --cov tests --disable-warnings -q
+ pytest -n auto --cov --disable-warnings -q
# This step will publish the coverage reports coveralls.io and
# print a "job" link in the output of the GitHub Action
diff --git a/pyproject.toml b/pyproject.toml
index 12c37348f..652af0c55 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -62,6 +62,6 @@ precommit = "pre-commit install"
build = "docker build -t ghcr.io/python-discord/bot:latest -f Dockerfile ."
push = "docker push ghcr.io/python-discord/bot:latest"
fast-test = "pytest -n auto"
-test = "pytest -n auto --cov-report= --cov bot --cov tests"
+test = "pytest -n auto --cov-report= --cov"
html = "coverage html"
report = "coverage report"