vipm-io / vi-tester

VI Tester for LabVIEW
BSD 3-Clause "New" or "Revised" License
28 stars 26 forks source link

Test Case class data is lost after first test is executed when using globalSetup #52

Open deejaycrawford-gla opened 4 years ago

deejaycrawford-gla commented 4 years ago

My test case class has an override for globalSetup.vi . I added a path control to the class data. The path data is present in the first test but the path variable is empty when the second test vi is run. This occurs when running the test case.

image

If I run the second test individually it works as expected. image

buckd commented 3 years ago

I ran into this too. Looks like a problem with the way tests are added to the suite. Each test is, effectively, a new instance of the TestCase class, which means that any data persisted in the TestCase private data gets wiped when the next test is run.

image

TestSuite.lvclass:run.vi