setup test coverage measurement

This commit is contained in:
Stefan Allius
2023-10-21 21:39:19 +02:00
parent 9264faaf3d
commit 27a99fccec
3 changed files with 10 additions and 2 deletions

2
.coveragerc Normal file
View File

@@ -0,0 +1,2 @@
[run]
branch = True

2
.gitignore vendored
View File

@@ -5,3 +5,5 @@ homeassistant/**
tsun_proxy/**
Doku/**
.DS_Store
.coverage
coverage.xml

View File

@@ -1,7 +1,11 @@
{
"python.testing.pytestArgs": [
"-vv",
"app","system_tests"
"-vv",
"app",
"--cov=app/src",
"--cov-report=xml",
"--cov-report=html",
"system_tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true