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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Important Information

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