Browse Source

Moved html output directory, reduced amount of text when testing

Stefan Schmidt 6 years ago
parent
commit
54961ad231
3 changed files with 9 additions and 4 deletions
  1. 2 3
      .gitignore
  2. 1 1
      build.sh
  3. 6 0
      code/.coveragerc

+ 2 - 3
.gitignore

@@ -20,8 +20,8 @@ tures/*
 
 code/*.pcap
 code/*.xml
-code/.coverage
-code/htmlcov/
+.coverage
+htmlcov/
 dbs/
 *.csv
 *.stat
@@ -32,4 +32,3 @@ code_boost/src/SQLiteCpp/
 code_boost/src/cmake-build-debug/
 
 run_tests
-run_coverage

+ 1 - 1
build.sh

@@ -57,7 +57,7 @@ ID2T_DIR=\$(readlink -f \$0)
 SCRIPT_PATH=\${ID2T_DIR%/*}
 cd \$SCRIPT_PATH/code
 # Execute tests
-coverage run --source=. -m unittest discover -s Test/
+PYTHONWARNINGS="ignore" coverage run --source=. -m unittest discover -s Test/ >/dev/null
 coverage html
 coverage report -m
 EOF

+ 6 - 0
code/.coveragerc

@@ -0,0 +1,6 @@
+[run]
+disable_warnings = ResourceWarning
+
+[html]
+directory = ../htmlcov
+