Changes between Version 8 and Version 9 of HowToWriteTests


Ignore:
Timestamp:
2015-02-25T13:34:10Z (10 years ago)
Author:
daira
Comment:

simplify commands to run tests with coverage

Legend:

Unmodified
Added
Removed
Modified
  • HowToWriteTests

    v8 v9  
    88
    99{{{
    10 ./bin/tahoe debug trial --rterrors allmydata.test.test_fname
     10python setup.py trial -s allmydata.test.test_fname
    1111}}}
    1212
     
    2828
    2929{{{
    30 ./bin/tahoe @coverage run --branch --include='src/allmydata/*' @tahoe debug trial --rterrors allmydata.test.test_fname
     30python setup.py trial --coverage -s allmydata.test.test_fname
    3131}}}
    3232
    33 If you installed coverage from Debian or Ubuntu then you have to name it {{{python-coverage}}}, like this:
     33
    3434
    3535{{{
    36 ./bin/tahoe @python-coverage run --branch --include='src/allmydata/*' @tahoe debug trial --rterrors allmydata.test.test_fname
     36python setup.py trial --coverage -s allmydata.test.test_fname
    3737}}}
    3838
     
    4040
    4141{{{
    42 ./bin/tahoe @coverage html
     42coverage html
     43}}}
     44
     45If you installed coverage from Debian or Ubuntu then you have to name it {{{python-coverage}}}, like this:
     46{{{
     47python-coverage html
    4348}}}
    4449