How to run test case by class name without directory load?
Is it possible to run a test case by classname instead of loading it from a directory?
I need to skip any directory loading completely since the directory with the source code does not exist.
Discussion (3)0
Comments
You can use DebugRunTestCase() in %UnitTest.Manager, or you can pass the /noload and /nodelete qualifiers to RunTest().
Thank you, Brett!
First ^UnitTestRoot must be set to a valid directory. This resolves the initial error of:
LogStateStatus:0:Finding directories: ERROR #5007: Directory name 'U:\internal\testing\unit_tests\' is invalid <<==== **FAILED** (root)::
After that run:
Do ##class(%UnitTest.Manager).DebugRunTestCase(,"User.TestCase")