Open GoogleCodeExporter opened 9 years ago
I measured also sympy for test coverage, in summary it has:
TOTAL LINES / COVERAGE: 16345 / 76%
Original comment by pearu.peterson
on 7 Nov 2007 at 7:52
Neat tool.
Including the mpmath tests raises the total to 80%.
Original comment by fredrik....@gmail.com
on 7 Nov 2007 at 8:17
How can you make this interesting output? Using py.test?
Original comment by ondrej.c...@gmail.com
on 7 Nov 2007 at 8:33
No, the script is based on trace module.
See
http://sympycore.googlecode.com/svn/tools/trace_coverage.py
Original comment by pearu.peterson
on 7 Nov 2007 at 8:54
A note when interpreting /tmp/sympy*.cover line number counts.
These are not actually "line number counts" but "trace number counts".
For example, if a source file contains
l = [i for i in range(5) if smth(i)]
then the corresponding cover file will contain
5: l = [i for i in range(5) if smth(i)]
The number `5` does not mean that the line
was executed 5 times. It means that 5 traces
were generated for each `smth` call when executing
this line ONCE.
Original comment by pearu.peterson
on 8 Nov 2007 at 12:42
Original issue reported on code.google.com by
pearu.peterson
on 7 Nov 2007 at 6:52