Question Jani Hurskainen · Aug 27, 2024

Is Test Coverage Tool coupled to InterSystems IRIS UnitTest framework (%UnitTest)?

Or other way round: Can Test Coverage Tool to be used with other unit testing frameworks than %UnitTest ?

Test Coverage Tool: https://openexchange.intersystems.com/package/Test-Coverage-Tool

InterSystems IRIS UnitTest framework: https://docs.intersystems.com/irislatest/csp/documatic/%25CSP.Documatic…

Comments

Timothy Leavitt · Aug 27, 2024

Hi @Jani Hurskainen - the short answer is "yes, TestCoverage is coupled to %UnitTest."
Can you elaborate on what you have in mind by "other unit testing frameworks" and/or what you're trying to achieve? %UnitTest is the only unit testing framework for ObjectScript that I'm aware of.
 Is your objective to unify Python and ObjectScript unit tests?

0
Jani Hurskainen  Aug 27, 2024 to Timothy Leavitt

This is ObjectScript only. The other unit testing framework is in-house developed non-public xUnit like unit testing framework. It was developed before %UnitTest exists and I'm just wondering would it be possible to use TestCoverage with it. Unfortunately my ObjectScript skills are still lacking so it's a bit hard for me to figure that out from the code. The long term goal might be to try to adjust these two things to work together.

0
Timothy Leavitt  Aug 27, 2024 to Jani Hurskainen

Ahh, I see. Honestly, if you're looking to adjust the two things to work together, you might be better off writing an adapter layer between %UnitTest.TestCase and your existing test case parent class rather than trying to make TestCoverage work for your custom unit test framework.

0