shb Posted January 18, 2012 Report Share Posted January 18, 2012 I created a TestCase where I have overwritten the two class VIs listAllTestMethods.vi and countTestCases.vi. But the Tests listed in VI Tester are the same as before. What are this VIs for? Greetings, shb Link to comment Share on other sites More sharing options...
Omar Mussa Posted January 21, 2012 Report Share Posted January 21, 2012 I created a TestCase where I have overwritten the two class VIs listAllTestMethods.vi and countTestCases.vi. But the Tests listed in VI Tester are the same as before. At this point, I see these VIs as part of the framework that you don't need to overwrite. countTestCases should not be overwritten. I'm not even sure why its over-writable - will check into that. listAllTestMethods I think can be used to replace the framework's dynamic discovery of test methods. I think this VI is intended overwrite-able but I will have to verify that. Out of curiosity, why are you trying to overwrite these methods? Link to comment Share on other sites More sharing options...
shb Posted September 14, 2012 Author Report Share Posted September 14, 2012 At this point, I see these VIs as part of the framework that you don't need to overwrite. countTestCases should not be overwritten. I'm not even sure why its over-writable - will check into that. listAllTestMethods I think can be used to replace the framework's dynamic discovery of test methods. I think this VI is intended overwrite-able but I will have to verify that. Out of curiosity, why are you trying to overwrite these methods? I tried to implement something like Parametrized Unit Testing. I currently use two work arounds: Create a test for every value. All this test VIs call a common SubVI executing the test. The test contains a loop which is run for every test value. The first failure breaks, the remaining are not run. I only overwrote countTestCases because only overwriting listAllTestMethods did not work Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.