guidorice / mojo-pytest

Mojo🔥 language test runner plugin for pytest. (aka pytest-mojo)
MIT License
46 stars 1 forks source link

Add support for mojo v24.4 #17

Closed guidorice closed 2 months ago

guidorice commented 3 months ago

The current example/ project does not run with mojo v24.4, it simply needs a couple of simple patches because of changes in the String api, (use str() instead) and also where there are SIMD comparisons, which needs all(result == expect) for example. There might also be an issue with defining 'main' within a package is not yet supported which I don't fully understand yet.

However, a better approach for v24.4 is seems like for mojo-pytest to wrap the newmojo test ... functionality as a backend for mojo tests, rather than the previous approach which was calling mojo run ... as the backend.

guidorice commented 2 months ago

Close by https://github.com/guidorice/mojo-pytest/releases/tag/v24.4.0