-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
1.0.8 json report "undefined" skipped tests #328
Comments
Hi again. I've further investigate and according to my comprehension, cucumber-jvm has the following behaviour:
I was expecting that step throwing a PendingException would be marked as 'pending' ... Am I wrong ? |
Cucumber steps can end up in one of the following native states:
When using the JUnit runner we have to map those states onto the states that JUnit understands:
All of the states pending, undefined and skipped are mapped to the ignored state for JUnit. The JSON report uses Cucumber's native states. Does this answer your question? If not, can you explain with some more concrete examples? (code snippets and output snippets). Please use triple backticks if you paste code. See GFM |
Many thanks for this explanation. I mean: could cucumber-jvm catch PendingExceptions to avoid the step to fail and marked it as 'pending' in JSON (and 'ignored' in JUnit). To me, a pending step should not cause test fail ... but also not pass. Another way to express my question could be: what is PendingException purpose ? |
I don't understand your question. When That is, unless you're using the The purpose of marking a step as pending is to give yourself a reminder to implement this step definition. I'm going to close this issue unless you provide me with some code to describe what you mean. |
Never mind my previous comment. It looks like there has been a recent regression here. I'm working on a fix. |
Ouf ! I started thinking I forgot how throwing an exception ;-) Many thanks for time spend on my request ... |
Ok, it works perfectly for me. Many thanks ! |
Great! Thanks for the feedback and sorry about the confusion/regression. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi and many thanks for cucumber-jvm.
Trying to use jenkins-cucumber-jvm-reports-plugin-java, I've noticed that skipped test (using @ignore and PendingException) are correctly reported in xml surefire-report but as "undefined" in json file.
I'm using cucumber-jvm 1.0.8, maven 3.0.4 & java openjdk 1.6.
The text was updated successfully, but these errors were encountered: