Open bilderbuchi opened 8 years ago
Ideally, the OM guys would use XogenyTest is there regression testing. But I'm guessing they don't (although I think they still use the Modelica by Example models in their regression tests.
I really have no idea what the issue is here with OM. I haven't really used it in a long time and I certainly haven't been tracking the changes.
Ideally, the OM guys would use XogenyTest is there regression testing. But I'm guessing they don't (although I think they still use the Modelica by Example models in their regression tests.
Yeah, they test some of the libraries they ship, but XogenyTest is not part of them. @sjoelund do you know why OM does not test XogenyTest? (Interestingly enough, they run tests for @kdavies4' FCSys, although the tests have been failing for ~years, and the library does not actually support OM).
Michael, do you think this is an OM issue? Do the tests currently run correctly using e.g. Dymola? (I can't check :-/)
I have no idea if it works with Dymola. I haven't used Dymola in years.
I see, what do you use currently?
I have't actually done much Modelica work in a while. My main work now is building web-based engineering analysis tools. This means creating user interfaces, web APIs, backend services, interactions with databases, etc. It has been keeping my very busy lately.
Ah, that sounds interesting as well. So, are you interested in receiving bug reports/fixes/PRs for XogenyTest? I'm asking to calibrate expectations.
I created several repos on GitHub in the hope that people would start building on them. I'd be happy to get bug reports, fixes, PRs, etc. I don't plan on doing any development work here (for now). I'm mainly trying to "shepherd" things along.
Hi @mtiller!
I'm currently looking for a good (free/open source) package with which to write unit and integration tests for code I'm writing.
I have tried to run the tests for XogenyTest1.1 included in the current Openmodelica nightly, but many of them fail.
If XogenyTest is unmaintained or otherwise not suitable anymore, could you recommend another suitable testing framework? I have already found a couple but none of them seem promising/attractive.
Also, did the TestCase annotations ever really take off in Modelica? The only reference I found is in some compliance tests in OM, but those annotations look different...
Details
The test run details (I could only run those tests which are models. I don't know why some are functions, but there's no nice way I know of to run functions in OpenModelica, only models):
XogenyTest.Tests.Trajectory.CheckSuccess, .CheckFailure2 and .CheckFailure3 fail with something like this:
and
I'm kinda assuming it's because of the double definition of
cur
since 0d3df1211ef74fcf313ee842f18c541230a52f4cXogenyTest.Tests.BecomesTrueAt.CheckFailure4 crashes the process after reporting the failed assertion
XogenyTest.Tests.BecomesTrueAt.CheckFailure2 and .CheckFailure3 reports an untreated assertion after correctly reporting that the tested assertion failed.
XogenyTest.Tests.Average.CheckSuccess, CheckFailure2 and .CheckFailure3 show variations of
XogenyTest.Tests.ValueAt.CheckFailure2 detects an untreated assertion.
In XogenyTest.Tests.ValueAt.CheckFailure3 the process crashed after correctly reporting the tested assertion as failed.