-
-
Notifications
You must be signed in to change notification settings - Fork 2k
improve test reports for cucumber-android #598
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
Conversation
Looks like a great improvement! Any chance this could get merged soon? |
Yeah, I am sorry for that. The restructuring happened somewhere half way through. |
…roidReporter * restructured project to be more maven compliant * added dependencies for testing purposes
@friederbluemle Unfortunately this PR build on a PR for Gherkin, and (as far as I know) snapshot releases are not deployed for Gherkin, so this PR cannot be merges until after the next Gherkin release. |
Note: depends on cucumber/gherkin#275. |
Answer to my second question: the commit cucumber/gherkin@b425544 changed the output of the JsonFormattter (to the better) which requires changing the JSONPrettyFormatterTest.json in the cucumber-core module. @aslakhellesoy Do you want me to include the fix for the failing test in this PR? |
@SierraGolf The needed change in the JsonFormatterTest due to the change in cucumber/gherkin@b425544 is taken care of in #570, which supplies the failing test to drive cucumber/gherkin#270 (which the commit belongs to), so it is not necessary for you to fix it in this PR. But if you what a passing build together with Gherkin built from the latest source, you would also need to include #570. |
@SierraGolf, I think there is another general problem with the expected output in JSONPrettyFormatterTest.json. As of now, a "before" element is included in these JSON objects:
However I believe the element should be placed in these objects instead:
Note that "id": "feature-3;scenariooutline-1;;1" is not even included in the JSON at all, even though it is referenced in "id": "feature-3;scenariooutline-1;". In b425544abc04821be2319d692aebb7d67c3d5daf @brasmusson noted where the hooks should be placed. Update: Ok, I just realized this is at least partially fixed in #570. But "id": "feature-3;scenariooutline-1;;1" is still missing, why? |
@brasmusson thanks for the info. in case #570 is merged before this one, I will rebase. I probably need to update this PR anyways as soon as the gherkin project is released. |
I tried building this branch (after first updating the gherkin dependency to 2.12.2. The Can you take a look at that, @SierraGolf ? |
@aslakhellesoy You need both #570 and this PR to get a passing build with Gherkin 2.12.2. #570 because of cucumber/gherkin#270 and this PR because of cucumber/gherkin#275 |
@brasmusson thanks! that seems to work. |
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. |
This PR is a follow up for "extension of the Formatter interface for more precise lifecycle handling" and will not compile as long as the other PR is not merged.
This PR is a refactoring of the previously quite buggy AndroidReporter. The following bugs have been fixed:
In order to test the behaviour properly three new test dependencies have been added. Additionally the project structure was changed to the usual maven structure.
Questions/Problems:
and JSONPrettyFormatterTest.featureWithOutlineTest fails: because the expected out contains the before hook information in the wrong scenario. When I run with 1.7.0_21 the errors disappear, but the failure remains.