Written by

Senior Cloud Architect at InterSystems
MOD
Question Eduard Lebedyuk · 1 hr ago

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.

Comments

Brett Saviano · 1 hr ago

You can use DebugRunTestCase() in %UnitTest.Manager, or you can pass the /noload and /nodelete qualifiers to RunTest().

0
Eduard Lebedyuk · 1 hr ago

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")
0