attest icon indicating copy to clipboard operation
attest copied to clipboard

coverage reporting

Open Autoplectic opened this issue 14 years ago • 5 comments

attest should have some way to report test coverage, probably using coverage.py. this is generally a very useful metric and so for attest to gain some real traction needs to support it.

Autoplectic avatar Feb 13 '11 11:02 Autoplectic

Doesn't it though work to simply do coverage run runtests.py?

If so I still should probably document it.

dag avatar Feb 13 '11 18:02 dag

With the new attest command it isn't obvious how to measure coverage. These should work:

coverage run -mattest
coverage run $(which attest)

These solutions should be documented as well.

dag avatar May 08 '11 15:05 dag

Running coverage run -mattest gives me this error: no such option -m. My attest version is 0.5.2.

dqminh avatar May 15 '11 04:05 dqminh

You are quite right, I noticed this too. The coverage docs claim -m is supposed to work but I get the same error. It does however work fine if you point it to a scriptfile that runs the tests.

dag avatar May 15 '11 12:05 dag