Skip to content
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

Closed
ehborisov opened this issue Apr 19, 2017 · 5 comments · Fixed by #275
Closed

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

ehborisov opened this issue Apr 19, 2017 · 5 comments · Fixed by #275
Labels
theme:testng TestNG related issue type:new feature Change that add something new for end users work:backlog No work on this issue at the moment

Comments

@ehborisov
Copy link
Contributor

No description provided.

@ehborisov ehborisov changed the title Add tests with enabled=false to report as skipped [TestNG] Add tests with enabled=false to report as skipped Apr 19, 2017
@braimanm
Copy link

braimanm commented Jul 27, 2017

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.

@slipwalker
Copy link

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

@ehborisov
Copy link
Contributor Author

@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.

@tarasmytlovych
Copy link

tarasmytlovych commented Apr 11, 2018

@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

@AlexanderPoleschuk
Copy link

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.

@baev baev added theme:testng TestNG related issue type:new feature Change that add something new for end users work:backlog No work on this issue at the moment labels Oct 31, 2018
@baev baev changed the title [TestNG] Add tests with enabled=false to report as skipped Add tests with enabled=false to report as skipped Nov 12, 2018
@baev baev closed this as completed in #275 Nov 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:testng TestNG related issue type:new feature Change that add something new for end users work:backlog No work on this issue at the moment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants