Update JUnit XML Reports#44
Merged
mitza-oci merged 8 commits intoDOCGroup:masterfrom Apr 19, 2021
Merged
Conversation
mitza-oci
requested changes
Mar 11, 2021
jwillemsen
reviewed
Mar 11, 2021
jwillemsen
reviewed
Mar 13, 2021
mitza-oci
reviewed
Mar 16, 2021
simpsont-oci
requested changes
Mar 22, 2021
mitza-oci
requested changes
Mar 26, 2021
simpsont-oci
requested changes
Apr 1, 2021
simpsont-oci
approved these changes
Apr 1, 2021
mitza-oci
approved these changes
Apr 16, 2021
Member
|
This broke the -n argument, but fixed that in PR #59 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added the hostname field to the <testsuite> element.
Added <properties> and child <property> elements to the <testsuite> element, containing “non-standard” data elements:
Two ways to test PR#44:
Use scoreboard.pl:
====================
1.1 Create and cd to a test directory that contains the build_logs directory. The build_logs directory contains a test.xml file and at least one build directory:
$ ls -R build_logs
build1 test.xml
build_logs/build1: 2021_03_07_16_45.txt 2021_03_08_16_59.txt 2021_03_09_17_33.txt latest.txt status.txt post
$ cat build_logs/test.xml
<scoreboard>
<group>
<name>Group 1</name>
<build>
<name>build1</name>
</build>
</group>
</scoreboard>
1.2 Run scoreboard.pl:
$ <path to>/autobuild/scoreboard.pl -c -v -u -d build_logs -o test.html -f build_logs/test.xml
1.3 Verify that the *_JUnit.xml files contain the property entries of git commit and of path to the full log html file.
Use autobuild.pl:
====================
2.1 In the OpenDDS root, create a workspace directory that contains a log file and a config file:
$ ls -R workspace/
2021_03_09_17_33.txt config_process_logs_only.xml
Replace 'OpenDDS_ROOT' with the actual path to the OpenDDS root:
$ cat workspace/config_process_logs_only.xml
<autobuild>
<configuration>
<variable name="project_root" value="OpenDDS_ROOT"/>
<variable name="root" value="OpenDDS_ROOT/workspace"/>
<variable name="log_root" value="OpenDDS_ROOT/workspace"/>
<variable name="log_file" value="2021_03_09_17_33.txt"/>
<variable name="junit_xml_output" value="2021_03_09_17_33"/>
</configuration>
<command name="process_logs" options="prettify"/>
</autobuild>
2.2 Run autobuild.pl:
$ <path to>/autobuild/autobuild.pl workspace/config_process_logs_only.xml
2.3 Verify that the *_JUnit.xml file contains the property entries of git commit and of path to the full log html file.
$ cat workspace/2021_03_09_17_33_JUnit.xml | grep "property"
<property name="GIT_COMMIT_OPENDDS" value="6c45822ce73ac6a1e9370e48ed7ac836a91b6ffd"/>
<property name="log_file" value="OpenDDS_ROOT/workspace/2021_03_09_17_33_Full.html"/>