tests: gadget-zero: add xunit reporting
This is intended to help produce CI reporting on PRs and regression testing.
This commit is contained in:
@@ -10,6 +10,7 @@ should be built for multiple devices.
|
||||
* [pyusb](https://walac.github.io/pyusb/) for running the tests.
|
||||
* [OpenOCD](http://openocd.org/) >= 0.9 for automated flashing of specific boards
|
||||
* python3 for running the tests at the command line.
|
||||
* unittest-xml-reporting, only if running in CI mode. XX
|
||||
|
||||
### Building the device firmware
|
||||
There are Makefile.xxxxx files for all the currently tested targets.
|
||||
@@ -61,7 +62,7 @@ OK (skipped=2)
|
||||
|
||||
To be even more brutal, run this in a shell loop.
|
||||
```
|
||||
$ while true; do python test_gadget0.py stm32f072disco; done
|
||||
$ while true; do python test_gadget0.py -d stm32f072disco; done
|
||||
```
|
||||
|
||||
You can also run individual tests, or individual sets of tests, see the [unittest documentation](https://docs.python.org/3/library/unittest.html) for more information.
|
||||
|
||||
Reference in New Issue
Block a user