intersystems / TestCoverage

Test Coverage Tool
MIT License
9 stars 8 forks source link

Allow CoverageClasses and CoverageRoutines to be specified as a dynamic array #23

Closed isc-tleavitt closed 9 months ago

isc-tleavitt commented 11 months ago

Right now, the documentation says:

Set tCoverageParams("CoverageClasses") = <$ListBuild list of class names for which code coverage data should be collected>
Set tCoverageParams("CoverageRoutines") = <$ListBuild list of routine names for which code coverage data should be collected>
Set tCoverageParams("CoverageDetail") = <0 to track code coverage overall; 1 to track it per test suite (the default); 2 to track it per test class; 3 to track it per test method.>
Do ##class(TestCoverage.Manager).RunTest(,,.tCoverageParams)

It would be nice if CoverageClasses and CoverageRoutines could be expressed as a dynamic array (that is, ["Foo.","Bar."] instead.

isc-shuliu commented 9 months ago

Hi Tim @isc-tleavitt , shall we make the method to accept both %DynamicArray and $ListBuild or shall we deprecate $ListBuild in favor of %DynamicArray?