protractor-beautiful-reporter icon indicating copy to clipboard operation
protractor-beautiful-reporter copied to clipboard

protractor-beautiful-reporter retry with flake

Open paulcastro2014 opened this issue 4 years ago • 1 comments

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

paulcastro2014 avatar Feb 25 '21 03:02 paulcastro2014

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.

miller45 avatar Aug 24 '22 14:08 miller45