11-18-2017 07:09 AM
Hello all,
We have noticed that if you create a user defined test, and then connect nothing to it, the default behaviour upon running the test is a pass. This seems counter intuitive. I would expect that a test should pass only if all test criteria are met, and it would be better that no test criteria at all (ie just the results cluster remaining) should be treated as a fail, since this allows us to run all unit tests overnight and address any issues (ie failed tests) in the morning.
Has anyone else had problems with this behaviour, (and even better) has anyone found a way to change this default behaviour such that the tests will fail?
Adam.
11-20-2017 03:36 AM
Hello Adam,
I'm afraid I don't have any answers for you as I don't use UTF. This is actually the default mode across all unit test frameworks I have used, in LabVIEW and Javscript - They will pass unless there is an assertion to fail.
I guess the question is what would be the cases where you would create a test case and not add anything to it? Really you should aim to make all tests pass before you commit them to the repository so the overnight test doesn't fail.
Cheers,
James