Yelp / Testify

A more pythonic testing framework.
Other
304 stars 67 forks source link

testify --coverage: it don't work #310

Closed bukzor closed 9 years ago

bukzor commented 9 years ago

I have the distinct suspicion that nobody has used this code in years.

$ testify --coverage tests/auto_source_test.py
.........Traceback (most recent call last):
  File "/usr/bin/testify", line 25, in <module>
    test_program.main()
  File "/usr/lib/python2.6/dist-packages/testify/test_program.py", line 350, in main
    sys.exit(not TestProgram().run())
  File "/usr/lib/python2.6/dist-packages/testify/test_program.py", line 314, in run
    return runner.run()
  File "/usr/lib/python2.6/dist-packages/testify/test_runner.py", line 208, in run
    runnable()
  File "/usr/lib/python2.6/dist-packages/testify/plugins/code_coverage.py", line 21, in run_test_case
    code_coverage.start(test_case.__class__.__module__ + "." + test_case.__class__.__name__)
  File "/usr/lib/python2.6/dist-packages/testify/utils/code_coverage.py", line 42, in start
    assert not started
AssertionError
Coverage.py warning: Module old was never imported.
asottile commented 9 years ago

I thought I deleted this already O_o

asottile commented 9 years ago

Kill with fire

bukzor commented 9 years ago

I think you did, but I can't find the PR.

On Fri, Apr 24, 2015 at 6:44 PM, Anthony Sottile notifications@github.com wrote:

Kill with fire

— Reply to this email directly or view it on GitHub https://github.com/Yelp/Testify/issues/310#issuecomment-96119953.

asottile commented 9 years ago

https://github.com/Yelp/Testify/pull/301