Skip to content
Snippets Groups Projects
Commit 630afa49 authored by Ruben Verweij's avatar Ruben Verweij
Browse files

Add code coverage info

parent 7c779b3a
No related branches found
No related tags found
No related merge requests found
......@@ -19,3 +19,7 @@ python:
install: "pip install -r requirements.txt"
script: python ./test.py
after_sucess:
- pip install codeclimate-test-reporter coverage
- CODECLIMATE_REPO_TOKEN=8582900c285e4da0f253555b1bac1ba501bd6ff07850b0f227166b3cdac59ecc codeclimate-test-reporter
\ No newline at end of file
import unittest
loader = unittest.TestLoader()
tests = loader.discover('tests', pattern='test_*.py', top_level_dir='.')
testRunner = unittest.TextTestRunner()
testRunner.run(tests)
import nose
from os import path
file_path = path.abspath(__file__)
tests_path = path.join(path.abspath(path.dirname(file_path)), "tests")
nose.main(argv=[path.abspath(__file__), "--with-coverage", "--cover-erase", "--cover-package=nd2reader", tests_path])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment