Merge lp:~vds/desktopcouch/add_test_coverage into lp:desktopcouch
Proposed by
Vincenzo Di Somma
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Eric Casteleijn | ||||
Approved revision: | 204 | ||||
Merged at revision: | 203 | ||||
Proposed branch: | lp:~vds/desktopcouch/add_test_coverage | ||||
Merge into: | lp:desktopcouch | ||||
Diff against target: |
221 lines (+73/-25) 4 files modified
desktopcouch/records/tests/test_field_registry.py (+21/-4) desktopcouch/records/tests/test_record.py (+22/-3) runtests.py (+27/-9) utilities/lint.sh (+3/-9) |
||||
To merge this branch: | bzr merge lp:~vds/desktopcouch/add_test_coverage | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Casteleijn (community) | Approve | ||
Chad Miller (community) | Approve | ||
Review via email: mp+40661@code.launchpad.net |
Commit message
Add script runtest.sh that now runs both lint and coverage check.
Description of the change
Add script runtest.sh that now runs both lint and coverage check.
To post a comment you must log in.
I don't especially like the new "runtests.sh". I think all its contents should be in "runtests.py" instead.
subprocess.call() for all the lines except "pyfiles=".
find is
source_files = list() endswith( ".py") and "test_" not in filename:
source_ files.append( os.join( dir, filename))
for dir, filenames in os.walk:
for filename in filenames:
if filename.
or something like that.
then subprocess. call([' python- coverage' , '-r'] + source_files)