Read-only forum archive

interpreter language test code coverage

interpreter language test code coverage

jack · Wed Apr 02, 2014 9:19 pm

Hello,


is it possible to get test code coverage statistics for the Singular library code (for .lib files) ?

If not, how many effort is needed to implement this feature?



Jack

Re: interpreter language test code coverage

malex · Wed Apr 09, 2014 5:24 pm

Clearly one needs a visited-proc/line-trace for a coverage report.
Note that if TRACE is 4 then Singular will output all the lines of visited procedures (and await <RETURN> per each line): http://www.singular.uni-kl.de/Manual/4- ... htm#SEC484

I imagine that could be a starting point for such a possibility...

ps: for internals grep 'TRACE_SHOW_'