Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Count VerificationTest definitions for each function in a package
ResourceFunction["VerificationTestCoverage"][sourcecode,verificationtests] counts how many verification tests involve each of the functions defined in sourcecode. | |
ResourceFunction["VerificationTestCoverage"][{source1,source2,..}, {verificationtests1,verificationtest2,…}] counts VerificationTest coverage for a collection of source files and test files. |
For the following source code:
In[1]:= |
And the following test file:
In[2]:= |
We can see that there are two tests of the function g but none for the function f:
In[3]:= |
Out[3]= |
Wolfram Language 13.0 (December 2021) or above
This work is licensed under a Creative Commons Attribution 4.0 International License