Repository: onecommons/unfurl (language: python)

Issue:
Running unit tests in tox should generate a code coverage report
When we run our unit tests with tox we should generate a code coverage report. `test-requirements.txt` current installs [coverage](https://coverage.readthedocs.io/en/coverage-5.5/) but it is used and I don't have any particular opinion about whether we should use that tool or some alternative. 
Running unit tests in tox should generate a code coverage report
When we run our unit tests with tox we should generate a code coverage report. `test-requirements.txt` current installs [coverage](https://coverage.readthedocs.io/en/coverage-5.5/) but it is used and I don't have any particular opinion about whether we should use that tool or some alternative. 
Running unit tests in tox should generate a code coverage report
When we run our unit tests with tox we should generate a code coverage report. `test-requirements.txt` current installs [coverage](https://coverage.readthedocs.io/en/coverage-5.5/) but it is used and I don't have any particular opinion about whether we should use that tool or some alternative. 


Discussion / hints:

Fix patch:
diff --git a/.gitignore b/.gitignore
index f7bc3d1d..426dcb50 100755
--- a/.gitignore
+++ b/.gitignore
@@ -11,7 +11,10 @@ __pycache__/
 .DS_Store
 .pytype
 .vscode
+.idea/
 .venv
 # due to using tox and pytest
 .tox
 .cache
+.coverage
+htmlcov/
\ No newline at end of file
diff --git a/tox.ini b/tox.ini
index 89ff3898..113e2d6f 100644
--- a/tox.ini
+++ b/tox.ini
@@ -40,7 +40,8 @@ commands =
 ;   check-manifest --ignore tox.ini,tests*
 ;   twine check
 ;   flake8 .
-    python -m unittest discover -s tests {posargs}
+    rm -f .coverage
+    pytest --cov=unfurl --cov-report html --cov-report term --cov-append tests
 
 [testenv:py{27,36,37,38,39}-lock]
 ;  creates Pipfile.lock for distribution, run tox -e 'py{27,37,38,39}-lock'


Test patch:
diff --git a/test-requirements.txt b/test-requirements.txt
index dc5c45b1..2761e369 100644
--- a/test-requirements.txt
+++ b/test-requirements.txt
@@ -1,3 +1,6 @@
-coverage
 moto[server]==1.3.16
 mock; python_version=='2.7'
+
+coverage
+pytest
+pytest-cov
diff --git a/tests/test_tosca.py b/tests/test_tosca.py
index cd506c0e..70082287 100644
--- a/tests/test_tosca.py
+++ b/tests/test_tosca.py
@@ -397,7 +397,7 @@ def test_import(self):
                     [
                         {
                             "operation": "check",
-                            "configurator": "test_tosca.SetAttributeConfigurator",
+                            "configurator": "tests.test_tosca.SetAttributeConfigurator",
                             "changed": True,
                             "priority": "required",
                             "reason": "check",