diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..6b08179 --- /dev/null +++ b/.coveragerc @@ -0,0 +1,2 @@ +[run] +branch = True \ No newline at end of file diff --git a/.gitignore b/.gitignore index 1989277..aab98ac 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,5 @@ homeassistant/** tsun_proxy/** Doku/** .DS_Store +.coverage +coverage.xml diff --git a/.vscode/settings.json b/.vscode/settings.json index 602a898..2d303ec 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -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