Closed larmitage-bjss closed 7 months ago
Makes sense. I never knew one could just recursively nest suites! If you can provide an example json report that's failing to generate the correct summary, I'm happy to take a look at it.
I think the tests are currently failing because of too strict an eslint or typescript config, not because the logic is faulty.
I can share examples but I'd rather not do it publicly. I've just followed you on Twitter/X, would you be able to follow me back and I can DM you? Unless you've got a different method (public email address etc)?
@larmitage-bjss I've sent you a dm, let me know if that works.
I've released 3.3.0 which should take care of this. Can you try it out and report back if it's working for you?
Absolute star, looks like it's working correctly now! Thank you so much!
I have two projects generating playwright json files, one has the spec details inside the second level of suites and the summary is working correctly:
The second has the spec details inside the third level of suites and the summary is coming out as "0 tests across 4 suites":
I can see the issue is in report.ts where it is only looking at the first and second level of suites, but I have been struggling to update the code as the tests are currently not working.
It should just need updating to something like:
Or even better a recursive function until it finds an empty array of suites.
Thanks