Jump to content

- - - - -

issue: TestCase.lvclass has too many depencies

  • Please log in to reply
1 reply to this topic

#1 shb

  • Members
  • 30 posts

Posted 26 February 2013 - 01:31 PM

When I create a test case a whole bunch of VIs appears in the dependencies because TestCase.lvclass needs them. They are too many in my opinion. Opening a TestCase takes too long.

Some Ideas:
  • Create an abstract Test Result
    This is how it is done in Python.
    This class depends on TestSuite.
    • Load dynamically (and buffer?) the current result class in TestCase.lvclass:defaultTestResult.vi
    • Or remove "TestResult.lvclass:Get Test Skip Message.vi" from the class. This VI seems to have the most dependencies. (Also on TestSuite)
  • remove the VIs which are not class VIs from the TestLoader.lvclass
    The VIs can be moved to a lvlib or be on their own.
    At least remove getTestsFromTestCaseObject.vi from the class, then TestCase.lvclass does not depend on TestSuite.lvclass
  • Maybe you will see more possibilities in the dependency diagram after this is done. I fail now.

  • 0

#2 shb

  • Members
  • 30 posts

Posted 04 March 2013 - 11:25 PM

The many dependent VIs are mainly a problem because LabVIEW loads all class VIs (and their SubVIs) when loading a class.
And the dependencies in the LabVIEW project are filled with dependencies only for testing.
  • 0