-
|
From my inspection of the documentation about the Python TestHarness and the source itself, it doesn't appear there is an easy way to do any sort of test setup or teardown. In the particular case for the MOOSE app I have developed, I need to copy a file to a specific location before the test and then remove it after the test. Any ideas how I might go about this? I suspect writing my own Tester might be the answer, but then how to link that into the existing TestHarness framework? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
You can create several tests which all depend on one another, each doing a special job: There are a lot of examples available in |
Beta Was this translation helpful? Give feedback.
You can create several tests which all depend on one another, each doing a special job:
There are a lot of examples available in
moose/test/tests/test_harnesswhich we use as controls/unittests.