Jump to content

issue: TestCase.lvclass has too many depencies

Recommended Posts

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.




Share this post

Link to post
Share on other sites

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.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.