Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This just adds some very basic automated tests to be run locally. It's basically an automated version of
smoketest.bat
which I use to verify things still work - but the manual process takes > 1h so this should help a little bit.The test runner could use some improvements but I now have a first version which is apparently useful and worth to evaluate. The current set of tests only test the non-async code and basically adaptions of the existing examples - I will add more tests when I get to that
Long-term goal is to unify the tests here and the HIL testing we will have in esp-hal one day. Maybe even running the tests during CI - but for now, this is better than having nothing
In any way this shouldn't annoy most users - the only file this messes with is the examples section in Cargo.toml which shouldn't be a big problem. Last not least I will maintain the tests myself so no problem for future contributors