]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
resulttool: Add support to create test report in JUnit XML format
authorClara Kowalsky <clara.kowalsky@siemens.com>
Wed, 28 Aug 2024 09:20:27 +0000 (11:20 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 29 Aug 2024 20:57:36 +0000 (21:57 +0100)
commit3f9be03946243feaa09b908d7010899769091fe6
treebee7f3a6f2097dcdae0e3f958c6c51e6b1c79f8f
parent823b5f6cf64ad37ee68e6274c58823f7cc75ddf0
resulttool: Add support to create test report in JUnit XML format

This adds the functionality to convert the results of the
testresults.json file to a unit test report in JUnit XML format. The
unit test report can be used in the CI/CD pipeline to display the test
results.

To use the resulttool scripts, first source oe environment, then run the
entry point script to look for help.
$ resulttool

To generate the unit test report, execute the below
$ resulttool junit <json_file>

By default the unit test report is stored as
<build_dir>/tmp/log/oeqa/junit.xml.

Signed-off-by: Clara Kowalsky <clara.kowalsky@siemens.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/resulttool/junit.py [new file with mode: 0644]
scripts/resulttool