-
|
I have created an optional dependency on a third party library (TPL) in the MOOSE app I am working with. The way in which I did this is:
This allows me to use the TPL successfully as long as it was included in the build. Now I would like to add some automated tests using the MOOSE testrunner to protect this feature. However, I need for the test to only be run if the TPL was included during the build and ignored completely otherwise. Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
|
Hello You need to set up a test group for automated testing. All the tests that will use the TPL will have to be in that group, and when you want to run them you will have to type: Add in the tests file for each concerned test: Guillaume |
Beta Was this translation helpful? Give feedback.
-
|
I want to point out that there is another solution for this using submodules. If the TPL is pulled into the MOOSE app as a git submodule, then any tests that are defined that require that TPL can have the following input added to the test definition: If the submodule is present, the tests will be run, and if not, they will be skipped. |
Beta Was this translation helpful? Give feedback.
I want to point out that there is another solution for this using submodules. If the TPL is pulled into the MOOSE app as a git submodule, then any tests that are defined that require that TPL can have the following input added to the test definition:
If the submodule is present, the tests will be run, and if not, they will be skipped.