-
Notifications
You must be signed in to change notification settings - Fork 542
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
[SUREFIRE-1057] Surefire doesn't detect TestNG test method which fails b... #70
Conversation
@mbocek LGTM |
@Tibor17
I tried to find testcases which contains SkipException what is programmatical way how to signalizing skip to TestNG but without luck. Please let me know if you would like to validate some specific testcase or extend it. |
@agudian |
@mbocek What release version of surefire plugin had this bug? The problem is that I downloaded your sources, reverted the TestNGReporter.java, commented out Am i doing something wrong or have i misunderstood? Pls keep this PR open, we can still utilize your effort. |
@Tibor17 I'll try to explain where is the problem. When i was digging around i have found difference between behavior in TestNG between versions < 5.9 and 6.0 < . After version 5.9 exception in data provider is no more reported to TestNG listener as failure but as a skip. That's the reason why i have changed onTestSkipped in the listener. With this fix we will get also more information when test is skipped by regular way in TestNG (like SkipException). What was changed in IT:
|
Thx for your update. I'll have a look in the weekend. |
Ok I understand. It sounds like TestNG bug. I am afraid that you should report a bug for TestNG, very similar progress with Our release due date isn't planned yet but I can say that we may have chance to do it in the EO January. Your IT looks very good. If the TestNG could fix this issue in February, we wouldn't need the change in TestNGReporter.java but the IT can be pushed with TestNG fixed version, right? |
@mbocek |
@Tibor17 If you think it is best what we can do then i can modify the testcase for testng version 5.7. Maybe one point which can be discussed: At the moment surefire not handling any skip information for testng. For junit there is ignore message populated to the skip report element. This fix improve skip information as well. |
Let me check it. Maybe we would have to open another JIRA issue as an improvement not related to this one. |
Test was modified to run against different versions of testng and you should be able to simply use it without surefire patch. I have sent a message to testng dev mailing list with query for clarification: https://groups.google.com/forum/#!topic/testng-dev/oOhjfASvyKw |
Surefire doesn't detect TestNG test method which fails because of exception in @dataProvider method.
Also TestNG SkipException wasn't properly populated to the report.