Skip to content

Incorrect number of ignored tests displayed in the XML results #3189

@Kanaduchi

Description

@Kanaduchi

TestNG Version

7.10.2

Expected behavior

The correct number of ignored tests should be displayed in the XML results

Actual behavior

Ignored statistic shows count of retried tests:
testng-core/src/main/java/org/testng/reporters/AbstractXmlReporter.java

public void add(Count count) {
      this.passed += count.passed;
      this.failed += count.failed;
      this.skipped += count.skipped;
      this.retried += count.retried;
      this.ignored += count.retried;
    }

Is the issue reproducible on runner?

  • Shell
  • Maven
  • Gradle
  • Ant
  • Eclipse
  • IntelliJ
  • NetBeans

Test case sample

@Test
@Ignore
   public void testIgnored() {
      System.out.println("Ignored testcase");
   }

Contribution guidelines

Incase you plan to raise a pull request to fix this issue, please make sure you refer our Contributing section for detailed set of steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions