summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2017-06-02 11:04:39 +0200
committerLucas Hoffmann <l-m-h@web.de>2017-06-02 15:37:00 +0200
commit84a5d025d06fbcd02da5345e74cfee711367e109 (patch)
tree8398889878688ff8d4df16f9836ca755b037410b /Rakefile
parent1b13cb38f1c425c1705fbb9e1b604b562012ce80 (diff)
downloadvdebug-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--Rakefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index 9c3cd1e..9a96107 100644
--- a/Rakefile
+++ b/Rakefile
@@ -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