Page 1 of 1

How do I auto-test my port?

Posted: Tue Feb 25, 2020 6:54 pm
by pulkin
I want to flash my port and to test software-related functions (first). What is the accepted practice?

Re: How do I auto-test my port?

Posted: Tue Feb 25, 2020 11:05 pm
by jimmo
Have you seen the tests/run-tests script? You can pass the --device flag (and --target) and it'll run the tests on an attached board instead.

At it's core, it's really just equivalent to using pyboard.py to run code on the device and compare the output, but more automated.

Re: How do I auto-test my port?

Posted: Wed Feb 26, 2020 9:15 am
by pulkin
That looks much better than I was expecting. Thanks.