Skip to content

Missing suffix in testcase classname XML report #3210

@Scoutman

Description

@Scoutman

Affected version

3.5.4

Bug description

Affected version

3.5.4
Bug description
Hello,
we updated maven-surefire-plugin from 3.2.5 to 3.5.4. After that the XML have a different classname(in testcase) in the report. In the old version was (Linux) suffix included. In the new version the suffix is missing. Are there any misconfigurations or is it a new behavior in the new version? Or a bug?

Plugin:
org.apache.maven.plugins, maven-surefire-plugin, v3.2.5

<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report-3.0.xsd" version="3.0" name="com.example.MonkeyTest(Linux)" time="0.123" tests="1" errors="0" skipped="0" failures="1">
  <properties>
    <property name="surefire.reportsDirectory" value="target/Linux-surefire-reports"/>
    <property name="failsafe.reportNameSuffix" value="Linux"/>
    <property name="failsafe.reportsDirectory" value="target/Linux-failsafe-reports"/>
    <property name="surefire.jacoco.destFile" value="target/Linux-jacoco.exec"/>
    <property name="surefire.reportNameSuffix" value="Linux"/>
    <property name="failsafe.jacoco.destFile" value="target/Linux-jacoco-it.exec"/>
  </properties>
  <testcase name="testMonkeyConvert" classname="com.example.MonkeyTest(Linux)" time="0.123">

Plugin:
org.apache.maven.plugins, maven-surefire-plugin, v3.5.4

<?xml version="1.0" encoding="UTF-8"?>
<testsuite xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://maven.apache.org/surefire/maven-surefire-plugin/xsd/surefire-test-report.xsd" version="3.0.2" name="com.example.MonkeyTest(Linux)" time="0.123" tests="1" errors="0" skipped="0" failures="1">
  <properties>
    <property name="surefire.reportsDirectory" value="target/Linux-surefire-reports"/>
    <property name="failsafe.reportNameSuffix" value="Linux"/>
    <property name="failsafe.reportsDirectory" value="target/Linux-failsafe-reports"/>
    <property name="surefire.jacoco.destFile" value="target/Linux-jacoco.exec"/>
    <property name="surefire.reportNameSuffix" value="Linux"/>
    <property name="failsafe.jacoco.destFile" value="target/Linux-jacoco-it.exec"/>
  </properties>
  <testcase name="testMonkeyConvert" classname="com.example.MonkeyTest" time="0.123">

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions