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

Fix json formatter to write result to file continuously #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

peter-reperger
Copy link
Contributor

@peter-reperger peter-reperger commented Jul 5, 2016

With the latest update, writing json results to file was done at the very end of execution. This has been changed back to the original behaviour: now json result is written to file continuously.
Also, cucumber dependency had to be changed: compatible version is 1.0.0, because breaking changes were introduced in cucumber version 1.1.0 (AstTreeWalker has been rewritten).

@@ -12,7 +12,7 @@ before_install:

install:
- npm install
- npm install cucumber
- npm install cucumber@1.0.0
Copy link
Owner

@simondean simondean Aug 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@peter-reperger I notice the latest version of cucumber is 1.2.2 https://www.npmjs.com/package/cucumber - does the code work with 1.1.x or 1.2.x or just version 1.0.0?

The version number is quite specific in the npm install. I.e. it's not ~1.0.0 or ^1.0.0 (https://docs.npmjs.com/getting-started/semantic-versioning). Looking at package.json I guess this could be at least ~1.0.0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@simondean The code works only with cucumber 1.0.0, because in 1.1.0 they introduced a breaking change (AstTreeWalker was completely rewritten).

I'll update the npm install version to use '~1.0.0'

@simondean
Copy link
Owner

@peter-reperger thanks for the pull request. I've added some comments to the code.

@peter-reperger peter-reperger force-pushed the json-output-formatter-fix branch from bcde91b to c47d0ce Compare August 18, 2016 13:30
@peter-reperger
Copy link
Contributor Author

@simondean I've updated the PR and resolved the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants