Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zolfa-nd2reader
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Lorenzo ZOLFANELLI
zolfa-nd2reader
Commits
630afa49
Commit
630afa49
authored
8 years ago
by
Ruben Verweij
Browse files
Options
Downloads
Patches
Plain Diff
Add code coverage info
parent
7c779b3a
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+5
-1
5 additions, 1 deletion
.travis.yml
test.py
+6
-5
6 additions, 5 deletions
test.py
with
11 additions
and
6 deletions
.travis.yml
+
5
−
1
View file @
630afa49
...
...
@@ -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
This diff is collapsed.
Click to expand it.
test.py
+
6
−
5
View file @
630afa49
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
])
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment