Skip to content

Add tests with enabled=false to report as skipped #49

Description

@ehborisov
No description provided.

Activity

  1. changed the title [-]Add tests with enabled=false to report as skipped[/-] [+][TestNG] Add tests with enabled=false to report as skipped[/+] on Apr 19, 2017
  2. braimanm commented on Jul 27, 2017

    @braimanm

    Disabled test should be marked as pending or "unknown" (Allure 2 version). Skipped tests in testNG lexicon are tests that was not executed due to failure of depend-on tests or configuration methods. TestNG is not executing disabled tests at all and not keeping any record of them in the test results. In Allure 1 AllureTestListener I added functionality to mark disabled tests as "pending" ("work in progress") for test coverage tracking. It is preferable to label those tests as "Disabled" but there is no such status currently in Allure report.

  3. slipwalker commented on Mar 19, 2018

    @slipwalker

    @ehborisov If I got it right, currently Allure2 report doesn't track disabled tests (tests with enabled=false)? Am I right?

  4. ehborisov commented on Mar 25, 2018

    @ehborisov
    ContributorAuthor

    @slipwalker yes, there isn't any easy way to keep track of those tests. They aren't being executed so test listener doesn't know anything about them.

  5. tarasmytlovych commented on Apr 11, 2018

    @tarasmytlovych

    @ehborisov
    Hi.
    Is there any way to implement this?
    It will help a lot.

    'Cos use case is the following: we have 1 acceptance test (that connection is established). If this check fails - no sense to continue because it is an entry point for each and every test so we do not proceed with the rest of tests.
    And we may see the following trend - e.g. 50 test -> 51 tests -> 1 failed test -> 51 -> 1 failed test and it is very confusing.

    allure-cucumber-jvm-adaptor, version:1.6.4
    allure-cucumber-plugin, version: 1.0.2

  6. AlexanderPoleschuk commented on May 17, 2018

    @AlexanderPoleschuk

    According to documentation: http://testng.org/doc/documentation-main.html#ignore-tests the most appropriate way to handle enabled=false case is to add another status called Ignored.

    This will store only disabled tests and distinguish it from really skipped tests.

  7. changed the title [-][TestNG] Add tests with enabled=false to report as skipped[/-] [+]Add tests with enabled=false to report as skipped[/+] on Nov 12, 2018
  8. added a commit that references this issue on Nov 14, 2018
    0fadfe3
  9. added theissue type on Jul 10, 2026
  10. removed
    pr:new featureChange that add something new for end users
    on Jul 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions