[tahoe-lafs-trac-stream] [Tahoe-LAFS] #2289: make tests with branch coverage easier to run

Tahoe-LAFS trac at tahoe-lafs.org
Tue Sep 2 14:19:55 UTC 2014


#2289: make tests with branch coverage easier to run
----------------------------+------------------------
 Reporter:  daira           |          Owner:
     Type:  enhancement     |         Status:  new
 Priority:  normal          |      Milestone:  1.12.0
Component:  packaging       |        Version:  1.10.0
 Keywords:  tests coverage  |  Launchpad Bug:
----------------------------+------------------------
 The correct command to run tests with branch coverage is:
 {{{
 bin/tahoe @coverage run --branch --source=src/allmydata @tahoe --version-
 and-path debug trial --rterrors allmydata.test
 }}}
 except that `@coverage` sometimes needs to be `@python-coverage` depending
 on how coverage is installed.

 This is impossible to remember (and the `@coverage` vs `@python-coverage`
 thing is annoying). Let's add a `--coverage` option to `python setup.py
 trial` and `python setup.py test`. Also let's have it print a nice error
 message saying how to install coverage if it's missing.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/2289>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list