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

[Feature Request] Unit testing in CI #255

Open
LeeNX opened this issue Jan 9, 2025 · 2 comments
Open

[Feature Request] Unit testing in CI #255

LeeNX opened this issue Jan 9, 2025 · 2 comments

Comments

@LeeNX
Copy link
Contributor

LeeNX commented Jan 9, 2025

Please can we get some unit testing in CI.

This issue I think is more a request in insight and ideas on how we could possible do unit testing in CI.

I don't think we could emulate an ESP32 and/or bluetooth connections and device, thou if somebody else knows otherwise, that would be awesome.

Next best thing I can think of, is a few devices setup that can be flashed with some of the sketches that run some tests.

@lemmingDev
Copy link
Owner

Yeah - not sure how this would be done

@LeeNX
Copy link
Contributor Author

LeeNX commented Feb 2, 2025

I don't believe there is a way to emulate this in GitHub action in a runner, but we could do a self-hosted runner, which could use two ESP32 devices, one with Bluepad32 as a host and then flash the latest testing sketch onto the other ESP32 device.

This would be a great place to also do the Latency Measurements. Test that all endpoints (buttons/sliders/joysticks/etc) work as expected.

Both PlatformIO and Arduino cli should be able to do the build and flash to the device. Have not figure out how to do the Bluepad32 flashing (it's a custom board setup in Arduino), but maybe we don't need to change that, it might just stay static.

Also let people setup test rigs of their own, so that we can reduce the number of variables when trouble shooting issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants