Skip to content

Commit

Permalink
Merge pull request #209 from mthaddon/coverage
Browse files Browse the repository at this point in the history
Add coverage to unit tests by default in 'charmcraft init'
  • Loading branch information
facundobatista authored Dec 17, 2020
2 parents 493e818 + 8ff7e3c commit 2d88b95
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions charmcraft/templates/init/requirements-dev.txt.j2
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
-r requirements.txt
coverage
flake8
3 changes: 2 additions & 1 deletion charmcraft/templates/init/run_tests.j2
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ else
fi

flake8
python3 -m unittest -v "$@"
coverage run --source=src -m unittest -v "$@"
coverage report -m
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
-r requirements.txt

coverage
pytest == 5.4.1
flake8 == 3.7.9
ops >= 0.8.0
Expand Down

0 comments on commit 2d88b95

Please sign in to comment.