New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests with enabled=false to report as skipped #49
Comments
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. |
@ehborisov If I got it right, currently Allure2 report doesn't track disabled tests (tests with enabled=false)? Am I right? |
@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. |
@ehborisov '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. allure-cucumber-jvm-adaptor, version:1.6.4 |
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. |
No description provided.
The text was updated successfully, but these errors were encountered: