Toad World® Forums

Unit-Test stays active even if all test-cases are inactive


Hi CodeTester-Team

One more enhancement request :slight_smile:

Sometimes I need to temporary disable all test cases within a specific unit test to skip the execution of this unit test. But if I do this using the Test-Builder, the unit test itself stays active resulting in runtime errors like this one:

ORA-06550: line 1, column 32:
PLS-00302: component ‘Q##XMLEXTRACTSTRING’ must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
ORA-06512: at “UNITTEST_OWNER.QU_TEST”, line 710
ORA-06512: at “UNITTEST_OWNER.QU_TEST”, line 1525
ORA-06512: at “UNITTEST_OWNER.QU_TEST”, line 1646
ORA-06512: at “UNITTEST_OWNER.QU_TEST”, line 1675
ORA-06512: at line 4

I think there should be some kind of automatism implemented that checks, whether we have at least one active test-case within the unit test. If so, execute the whole unit test, if not, do not execute the unit test (maybe even if it is flagged active?).




Thanks, Daniel. This should be fixed in V2. A new beta will be out soon that you can test it on.

Cheers, SF