improve coverage config

pull/99/head
freewind 7 years ago
parent ac279a0e21
commit 402404efa2
  1. 13
      .coveragerc
  2. 2
      .gitignore
  3. 5
      coverage_report.sh

@ -0,0 +1,13 @@
[run]
source =
.
[report]
omit =
*__init__.py
/usr/*
*_test.py
setup.py
[html]
directory = coverage_html_report

2
.gitignore vendored

@ -12,5 +12,5 @@ dist
laser*
lol*
.idea*
htmlcov/
coverage_html_report/
.coverage

@ -1,5 +1,6 @@
#!/bin/sh
coverage run --source=mythril -m unittest discover -p "*_test.py"
rm -rf htmlcov
coverage run -m unittest discover -p "*_test.py"
coverage html
open htmlcov/index.html
open coverage_html_report/index.html

Loading…
Cancel
Save