Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
modelgen
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
modelgen
Commits
ce703aee
Commit
ce703aee
authored
Jul 11, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added code coverage option to Makefile.
parent
9d16d57d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
.gitignore
.gitignore
+2
-0
Makefile
Makefile
+13
-2
No files found.
.gitignore
View file @
ce703aee
...
...
@@ -3,3 +3,5 @@
*~
*.bak
data/
coverage/*
.coverage
Makefile
View file @
ce703aee
TEST
:=
test.py
COVERAGE_DIR
:=
coverage
COVERAGE_OMIT
=
/usr/share/pyshared/
*
,test.py,tests/
*
test
:
@
pyrg
$(TEST)
coverage
:
coverage erase
@
if
[
-d
$(COVERAGE_DIR)
]
;
then
rm
-rf
$(COVERAGE_DIR)
/
*
\
else
mkdir
$(COVERAGE_DIR)
;
fi
coverage run test.py
coverage html
--omit
=
$(COVERAGE_OMIT)
-d
$(COVERAGE_DIR)
coverage report
--omit
=
$(COVERAGE_OMIT)
clean
:
rm
`
find
-name
\*
.pyc
`
coverage erase
rm
-rf
$(COVERAGE_DIR)
`
find
-name
\*
.pyc
`
.PHONY
:
test clean
.PHONY
:
test clean
coverage
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment