porscheinformatik/cucumber-report-db

Parallel test reporting is breaking the web report

Opened this issue · 0 comments

Hi,
Your plugin is very useful for me as it sums ups the cucumber tests results very nicely.
I recently started running my cucumber tests in parallel, which means that each feature file is running in a different thread. This is saving up a lot of time during the tests run and make the running process more efficient.
The tests are reported all at once in the end of the process and they all get the same timestamp as a result of that.
The results appear to be fine in the reporter Mongo collection, but when trying to open the web reports then the mess starts. Some features can't be opened at all, while others show results of different features and not their own.

I've figured out that because they all share the same timestamp in Mongo (this is found under the "date" element in the mongo document) then the web is having difficulties presenting them, since the path to the feature includes the feature timestamp (date).
Here is an example of a feature web report path. Date identifier is marked in bold:
http: //reports/#/reports/CI_2788/features/2017-03-14T09:55:07.459Z/feature/users-api

Would it be possible to change the behavior so it won't rely on the date as the identifier of the feature? Mongo sets a unique ID for each document, so that could be used for example. It's much more specific than a timestamp.

Attached is a file that contains 2 feature mongo documents in the same collection sharing the same date
2docs.txt

Thanks,
Roy