[tahoe-lafs-trac-stream] [Tahoe-LAFS] #1698: the preferred cmdline to run tests under coverage is pretty huge, and comes in two flavors due to Debian renaming of the script

Tahoe-LAFS trac at tahoe-lafs.org
Tue Sep 9 00:14:28 UTC 2014


#1698: the preferred cmdline to run tests under coverage is pretty huge, and comes
in two flavors due to Debian renaming of the script
----------------------------+-------------------------------------
     Reporter:  davidsarah  |      Owner:  warner
         Type:  defect      |     Status:  closed
     Priority:  normal      |  Milestone:  1.11.0
    Component:  code        |    Version:  1.9.1
   Resolution:  fixed       |   Keywords:  usability test coverage
Launchpad Bug:              |
----------------------------+-------------------------------------
Changes (by warner):

 * keywords:  usability test coverage review-needed => usability test
               coverage
 * status:  new => closed
 * resolution:   => fixed


Comment:

 Looks good, landed in [53dc723184].

 I think this is enough for 1.11 . Yeah, Makefiles aren't particularly
 windows-friendly, but I use them as a shortcut, and I think they can serve
 as a useful reminder for what commands can be typed. Travis and other
 automation can use the `setup.py test --coverage` incantation.

 At the start of the 1.12 cycle, I'd like to merge our work on replacing
 the whole (bin/tahoe, PATH/PYTHONPATH, support/lib, `subprocess.call()`)
 mess with something based on virtualenv. Once that's in place, I'd kind of
 like to remove all knowledge of `coverage` from tahoe (setup.py, bin/tahoe
 debug trial --coverage, etc). Then our instructions for doing testing with
 coverage can be:

 * install `coverage` into the virtualenv
 * run `venv/bin/coverage run bin/tahoe debug trial`, or `venv/bin/coverage
 run setup.py test`

 Or maybe use `setup.py test --coverage` but have the implementation depend
 upon the virtualenv being in place. Anyways, we should have plenty of time
 to figure out what's the best approach after we get 1.11 done.

--
Ticket URL: <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1698#comment:16>
Tahoe-LAFS <https://Tahoe-LAFS.org>
secure decentralized storage


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