Is there common practices to test procedures as well (potentially with cases loaded)?
Hi @benjaminleroy
Please check out this post best practice post by our colleague @Jan-Willem. It also contains a reference to our Unit Test Library that is available for all developers of AIMMS applications; we use it for building the SC applications.
We are working on a best practices article that can also help!
Thanks @luispinto. My team is currently working on building up the automated testing suite for AIMMS, so please feel free to reach out if you want so engagement with the articles even when they’re just drafts.
Hi @benjaminleroy, you may want to take a look at the unit test project for the Data Exchange library, which is built around the AimmsUnitTest library and uses many of its features in a practical setting.
You can download it from here: https://documentation.aimms.com/dataexchange/using.html
Thanks for the great resources (I’ll need to dig into the breadth of tests in the Data Exchange library). I’m most interested in tools to allow automated testing & automated code coverage. Coming from open source software, it would also be great to see how AIMMS type processing integrates into github actions, etc.
Also, it’s sometimes hard to see how library based testing can be extended to model based testing (maybe Data Exchange’s tests will help me see this).
Is there a way to generate a code coverage report from log/AimmsUnit.xml? This would be helpful to setup some pre-commit hooks on production code.
Hi @Sree
There is no code coverage included in the AimmsUnitTest library, as this would require engine support which is currently not available.
I would suggest that you use the Ideation section to submit the idea to add code coverage support to the engine.