Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JUnit format for maven tests #621

Open
dmassimi opened this issue Aug 31, 2021 · 1 comment
Open

JUnit format for maven tests #621

dmassimi opened this issue Aug 31, 2021 · 1 comment

Comments

@dmassimi
Copy link

Maven Plugin version: 2.8.0

Maven version: 3.6.1

Product : TIBCO Businessworks Container edition

Product version: 2.6.1

Component: Maven build plugin

Steps to reproduce the issue:

  1. launch mvn test goal
  2. check xml result

Additional environment details if any:

Describe the results you received:
Hi, maven tests results are something standard or is a tibco format ?
Asking because customer wants to show the results on SonarQube (it seems it accept just JUNIT xml format).
Do you know how to convert it to JUnit format?

<completeReportDTO> <moduleResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="testSuiteResultDTO"> <codeCoverage xsi:type="processCoverageDTO"> <activityCoverage xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Mapper</activityCoverage> <activityCoverage xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Start</activityCoverage> <activityCoverage xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">End</activityCoverage> <activityCoverage xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">MapperWithId</activityCoverage> <moduleName>bw.mc-genapp</moduleName> <processName>MC-timer-genapp.MCI.Order.SubProcessCamundaSinistre</processName> <transitionCoverage xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">StartToEnd</transitionCoverage> <transitionCoverage xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">MapperToCopy_1_Mapper</transitionCoverage> <transitionCoverage xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">Copy_1_MapperToEnd</transitionCoverage> </codeCoverage> <moduleInfo> <appName>bw.mc-genapp.application</appName> <appVersion>1.0</appVersion> <moduleName>bw.mc-genapp</moduleName> <moduleVersion>1.0.0.qualifier</moduleVersion> </moduleInfo> <testSetResult xsi:type="testSetResultDTO"> <packageName>MC-timer-genapp.MCI.Order</packageName> <processName>MC-timer-genapp.MCI.Order.SubProcessCamundaSinistre</processName> <testCaseResult xsi:type="testCaseResultDTO"> <assertionFailure>0</assertionFailure> <assertionResult xsi:type="assertionResultDTO"> <activityName>Mapper</activityName> <activityOutput></activityOutput> <assertionMode>Primitive</assertionMode> <assertionStatus>passed</assertionStatus> <endElementNameTag>&lt;/out&gt;</endElementNameTag> <goldInput>&lt;out&gt;AAC&lt;/out&gt;</goldInput> <instanceId>bw0a100</instanceId> <message></message> <startElementNameTag>&lt;out&gt;</startElementNameTag> </assertionResult> <assertions>1</assertions> <assertionsRun>1</assertionsRun> <processFailures>0</processFailures> <testCaseFile>/bw.mc-genapp/Tests/bw.mc-genapp2.bwt</testCaseFile> </testCaseResult> </testSetResult> <showFailureDetails>false</showFailureDetails> </moduleResult> </completeReportDTO>

Describe the results you expected:

JUnit format for maven tests goal

Additional information you deem important (e.g. issue happens only occasionally):

@dmassimi
Copy link
Author

Maybe duplicate of #255

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant