-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
It would be great if XogenyTest would offer some kind of test runner, which could be used/extended in your package, would discover all tests (e.g. in a Test subpackage) automatically, run them in sequence, and report the results back. That way, one would not have to run all the created tests manually every time, which gets tedious with a large number of tests.
I already tried thinking about how to best approach this, but I'm a bit stumped.
- Should this be a model or function? Model I guess is easier to use/run in an IDE, on its own.
- Is is it even possible in vanilla Modelica to discover programmatically all available models in a package, by some glob/regex matching, or by the
TestCaseannotation? If not, how could this be programmed? - How to avoid that the whole test run stops on the first failed assert (at error level currently)? Other test frameworks (e.g. the ecxellent
pytestin Python) just catch the generated exceptions, report, and carry on testing. Hoever, I could not find an equivalent to try/catch or exceptions or "treating" asserts in Modelica.
Metadata
Metadata
Assignees
Labels
No labels