Skip to content

Failure on teardown is not considered as test error/failure #90

@1turbok7

Description

@1turbok7

Jenkins and plugins versions report

Jenkins: 2.346.3
OS: Windows Server 2019 - 10.0
Java: 1.8.0_402 - Amazon.com Inc. (OpenJDK 64-Bit Server VM)

nunit:0.27
xunit:3.1.0

What Operating System are you using (both controller, and any agents involved in the problem)?

Windows Server 2019 - 10.0

Reproduction steps

  • On one of test-suite, error on teardown occurred (test executed successfully and passed):
    executed="True" result="Failure" success="False"

  • On general status of test-results:
    errors="0" failures="0"

Expected Results

  • On one of test-suite, error on teardown occurred (test executed successfully and passed):
    executed="True" result="Failure" success="False"

  • On general status of test-results:
    errors="1" failures="1"

Actual Results

  • On one of test-suite, error on teardown occurred (test executed successfully and passed):
    executed="True" result="Failure" success="False"

  • On general status of test-results:
    errors="0" failures="0"

Anything else?

Would be nice to have an option on the plugin to treat errors on any part of the test as a failure

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions