guidewire-oss / fern-ginkgo-client

An api client for to be used in Ginkgo to send test information to fern-reporter
Apache License 2.0
9 stars 5 forks source link

Feat: Consolidate Ginkgo Reports for multiple Test Suites as a single Test Run. #11

Open gowtham-ra opened 1 month ago

gowtham-ra commented 1 month ago

Context: In the initial design of the Fern Ginkgo client, we assumed the test suite configuration would reside at the root level of a project. However, Ginkgo's recommended practice is to have a test suite for each package.

Following this approach, now fern-ginkgo client's Report method is used to report from each test suite individually for a single test run. As a result, we end up with multiple test run entries, each corresponding to a different test suite.

This issue aims to aggregate all the reports from individual test suites and treat them collectively as a single test run.

gowtham-ra commented 2 days ago

PFA two files for reference:

  1. Report Single Suite - Old Way with 1 parent-level test suite for all spec runs.
  2. Report Multiple Suite - New Way with multiple test suites (from each pkg) for a single test run