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

@autoretry in Behave 1.2.6 #8

Open
lawnmowerlatte opened this issue May 26, 2017 · 2 comments
Open

@autoretry in Behave 1.2.6 #8

lawnmowerlatte opened this issue May 26, 2017 · 2 comments

Comments

@lawnmowerlatte
Copy link
Contributor

I've noticed that when using the new @autoretry behavior in Behave 1.2.6, I get duplicate records in the JSON output. For example, if I have a retry count of 3, and the first two attempts fail, when parsing the JSON I get 3 scenarios: [Fail, Fail, Pass] — I'd really like to only have the passing test count. Is there some way this module could strip out those results, or should I ask on the Behave project?

@lawnmowerlatte
Copy link
Contributor Author

I did more research today and I think this is because JSON is a formatter (unlike JUnit) so the running test is output to the file as it goes. I opened behave/behave!565 but I'm not sure if anything can really be done about it. Would you be open to a PR that offers deduplicating as an option?

@lawnmowerlatte
Copy link
Contributor Author

Have a look at my fork for an example.

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

No branches or pull requests

1 participant