When Jenkins "Publish JUnit test result report" is setup for the output of "sfdx force:lightning:test:run" that is running LTS tests, the test results for passing tests are presented as a single line (with counts and times aggregated) instead of a line per test.
The XML output lines all have an empty string for their classname:
<testcase name="c:wizContainer : body component has been created" classname="" time="1.86"></testcase>
and the presentation code appears to group by that attribute.
Changing LightningTestResults.getTestContainerName(test) to return the same thing as LightningTestResults.getTestName(test) would be a quick fix, but perhaps a better value could be returned.
(I realize this code isn't part of LTS but perhaps you can pass this on to the relevant team?)
When Jenkins "Publish JUnit test result report" is setup for the output of "sfdx force:lightning:test:run" that is running LTS tests, the test results for passing tests are presented as a single line (with counts and times aggregated) instead of a line per test.
The XML output lines all have an empty string for their
classname
:<testcase name="c:wizContainer : body component has been created" classname="" time="1.86"></testcase>
and the presentation code appears to group by that attribute.
This code appears to provide the values:
and this is the equivalent for Apex (for reference):
with the XML built by:
Changing
LightningTestResults.getTestContainerName(test)
to return the same thing asLightningTestResults.getTestName(test)
would be a quick fix, but perhaps a better value could be returned.(I realize this code isn't part of LTS but perhaps you can pass this on to the relevant team?)