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

protractor-beautiful-reporter retry with flake #207

Open
paulcastro2014 opened this issue Feb 25, 2021 · 1 comment
Open

protractor-beautiful-reporter retry with flake #207

paulcastro2014 opened this issue Feb 25, 2021 · 1 comment
Labels

Comments

@paulcastro2014
Copy link

paulcastro2014 commented Feb 25, 2021

As stated in the docs, protractor-beautiful-reporter does not work with protractor-retry or protractor-flake. The collection of results currently assumes only one continuous run.
Is there any workaround to achieve this? or maybe another reporter...
Ideal scenario would be to show in the report the execution that Pass only

@miller45
Copy link
Collaborator

The results are accumlated in the combined.json file. So in theory you could parse that file after the whole run, filter out double results by using the latest result only and write the pactched file back. Here is an example

  {
        "description": "should greet the named user|angularjs homepage",
        "passed": false,
        "timestamp": 1534696707767
    },
    {
        "description": "should greet the named user|angularjs homepage",
        "passed": true,
        "timestamp": 1534696710000
    }
]```
So if you use something like retry, you would have entries with the same "description" n-times. (Here it is two). So you could look at the timestamp and weed out duplicate entries by taking the only one with the oldest timestamp.

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

No branches or pull requests

2 participants