Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates testing system #305

Closed
wants to merge 3 commits into from
Closed

Conversation

kdschlosser
Copy link
Contributor

I have created a framework to run tests on the binding. The framework makes it really easy to add tests do to not needing any knowledge of the unittests framework. How the system works is I am leveraging the input and output buffers for a subprocess that is running the binding. The test framework is able to handle simple data checks as well as frame buffer captures.

There is a readme file in the tests folder that goes over how to add tests.

There is a readme in the tests folder where I have outlined what needs to be done to add tests.
It is actually a pretty simple process.

To run the tests you need to be in the root of the micropython directory. This is the command you will run

```
python3 lib/lv_bindings/tests/__init__.py --artifact-path=lib/lv_bindings/tests/artifacts --mpy-path=ports/unix/build-standard/micropython
```

the paths have to be relative to where ever you are running the tests from. so you can change the paths if wanted. the artifacts folder must exist prior to running the tests.
@PGNetHun PGNetHun changed the title Updates tyesting system Updates testing system Jan 6, 2024
@PGNetHun PGNetHun added enhancement New feature or request v9 Required for LVGL v9 compatability labels Jan 6, 2024
@kdschlosser kdschlosser closed this Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v9 Required for LVGL v9 compatability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants