From 6ccca8332d57cf9d00dfa7af579be6bee8b6a889 Mon Sep 17 00:00:00 2001 From: Antony Nevis Date: Mon, 8 Apr 2024 12:44:26 +1000 Subject: [PATCH] Fix the relative path for coverage --- .coveragerc | 10 ++++++++++ devbox.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .coveragerc diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..abf7a32 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,10 @@ +[run] +branch = true +source = src/ +relative_files = true +omit = + # Omit any test files + */*_test.py + +[xml] +output = ./coverage.xml diff --git a/devbox.json b/devbox.json index 4acaad5..972fda5 100644 --- a/devbox.json +++ b/devbox.json @@ -17,7 +17,7 @@ "pytest src/" ], "test-cov": [ - "pytest src/ --cov=src/ --cov-report=xml" + "pytest --cov=src/ --cov-report=xml" ], "lint": [ "flake8 src/"