diff options
author | Damien George <damien@micropython.org> | 2025-06-11 00:09:32 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2025-06-12 21:47:20 +1000 |
commit | 2bc5af694593c3654d0e7b59ad18b6f4a442072a (patch) | |
tree | 14dc234d0a17453cca65ed7d593ed0763fc8d993 /tests/run-natmodtests.py | |
parent | e4d556b14931d0c5245cda585341f377f9186298 (diff) | |
download | micropython-2bc5af694593c3654d0e7b59ad18b6f4a442072a.tar.gz micropython-2bc5af694593c3654d0e7b59ad18b6f4a442072a.zip |
tests/run-tests.py: Factor out helper function to create test report.
This commit factors existing code in `run-tests.py` into a new helper
function `create_test_report()`. That function prints out a summary of the
test run (eg number of tests passed, number failed, number skipped) and
creates the corresponding `_results.json` file.
This is done so `create_test_report()` can be reused by the other test
runners.
The `test_count` counter is now gone, and instead the number of passed plus
number of failed tests is used as an equivalent count.
For consistency this commit makes a minor change to the printed output of
`run-tests.py`: instead of printing a shorthand name for tests that failed
or skipped, it now prints the full name. Eg what was previously printed as
`attrtuple2` is now printed as `basics/attrtuple2.py`. This makes the
output a little longer (when there are failed/skipped tests) but helps to
disambiguate the test name, eg which directory it's in.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/run-natmodtests.py')
0 files changed, 0 insertions, 0 deletions