Skip to content

After upgrading to TestNG 7.5.0, setting ITestResult.status to FAILURE doesn't fail the test anymore #2771

@asolntsev

Description

@asolntsev

TestNG Version

  • 7.5
  • 7.6.0

Given

A project with Listener (my custom "soft assert" listener) which marks ITestResult status as FAILURE after the test.

Expected behavior

I expect my test to fail.

Actual behavior

After upgrading to TestNG 7.5, my test doesn't fail anymore. It's a bug.

Is the issue reproducible on runner?

  • Maven
  • Gradle
  • IntelliJ

Test case sample

Please check this trivial project which stabely reproduces the problem:
https://github.com/asolntsev/testng-listeners-sample

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