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

Platform.io Support #333

Open
bshambaugh opened this issue Nov 28, 2022 · 3 comments
Open

Platform.io Support #333

bshambaugh opened this issue Nov 28, 2022 · 3 comments
Labels
unittest libs The assert / assure / unittest reporting apparatus is affected

Comments

@bshambaugh
Copy link

(Issue Summary / Feature Request)

I started playing around with your Blink sketch and I realized that it was not easily portable to platform.io . /home/Arduino, library.properties, and a specific folder structure were assumed. Is there an easy way to think about migration? I included a link to my Platform.io attempt.

Arduino or Unit Test Code, Illustrating the Problem

https://github.com/bshambaugh/ardunioCI-on-platformIO

@bshambaugh
Copy link
Author

@bshambaugh
Copy link
Author

I just realized some other problems. 1) I am using an ESP32 (however it is Arduino compatible) , 2) I'm running websockets, but I am not sure you've implemented that yet, 3) I have an external cryptographic co-processor (https://github.com/sparkfun/SparkFun_ATECCX08a_Arduino_Library) but I don't think you've set up a mock for it.

For (3) I could try something like this: https://github.com/kmackay/micro-ecc to emulate behavior.

@ianfixes ianfixes added the unittest libs The assert / assure / unittest reporting apparatus is affected label Dec 28, 2022
@ianfixes
Copy link
Collaborator

Hi Brent, thanks for this question.

If I'm understanding you correctly, you're asking how to use Platform.io to run arduino_ci unit tests. The simple answer is that Platform.io is an alternative CI system for Arduino -- arduino_ci unit tests are meant to be run locally with the arduino_ci.rb test runner, or in CI via the ArduinoCI GitHub Action.

Have you tried either of those options?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
unittest libs The assert / assure / unittest reporting apparatus is affected
Projects
None yet
Development

No branches or pull requests

2 participants