Released v0.11 of Menai. This one is a very small release to unlock a capability for Humbug v60. The key idea is to enable Humbug's AI tool to be able to run tests automatically without having to use menai-test in a terminal.
Automatic testing
One of the reasons to build Menai is to allow AIs to construct code at runtime, but to make this really useful we need to be able to refactor this into reusable code elements.
Refactoring is really only safe if there are tests for the code that will help us ensure it does what it's supposed to do. Within the Menai project we have the CLI tool menai-test, but this isn't ideal within an AI harness, so now Menai exposes a test runner that's compatible with the menai-test tool, but that can be embedded instead.
Menai v0.11
Menai v0.11 is a very small update that adds one significant feature to support use in Humbug.
New features
- The
menai-testsupport module now ships as package data of themenaipackage and is located throughimportlib.resourcesbymenai.support_module_dir()andmenai.support_module_source(), so a host test tool can make it available without depending on a source checkout. - Added
menai.run_test_suite(), a library form of the test runner that returns structured outcomes for a host tool to render, without depending on themenai-testconsole script or its coverage support. - The
.test.menaisuite format is now documented in the AI reference and in the language manual.
Bug fixes
- Fixed some older document references that had become stale.