diff options
author | Lucas Hoffmann <l-m-h@web.de> | 2017-06-02 11:04:39 +0200 |
---|---|---|
committer | Lucas Hoffmann <l-m-h@web.de> | 2017-06-02 15:37:00 +0200 |
commit | 84a5d025d06fbcd02da5345e74cfee711367e109 (patch) | |
tree | 8398889878688ff8d4df16f9836ca755b037410b /Rakefile | |
parent | 1b13cb38f1c425c1705fbb9e1b604b562012ce80 (diff) | |
download | vdebug-84a5d025d06fbcd02da5345e74cfee711367e109.zip |
Simplify test setup and remove test runner script
The tests can be run with `python -m unittest discover` instead. When
run with python3 they show some deprecation warnings that where not
shown before but they do not fail.
Additionally this reduces the missed lines count in the test coverage
report to 0 for nearly all test files.
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -17,9 +17,9 @@ namespace :test do task :unit do if ENV["COVERAGE"] puts "Running unit tests with coverage (view output at ./htmlcov/index.html)" - cmd = "coverage run vdebugtests.py && coverage html --include=\"*/vdebug/*\"" + cmd = "coverage run -m unittest discover && coverage html --include=\"*/vdebug/*\"" else - cmd = "python vdebugtests.py" + cmd = "python -m unittest discover" end puts cmd system cmd |