web icon indicating copy to clipboard operation
web copied to clipboard

fix(summaryReporter): fix report for nested suites

Open gian1200 opened this issue 11 months ago • 1 comments

Fixes https://github.com/modernweb-dev/web/issues/2810

What I did

  1. Add support for nested TestSuites
  2. Print TestSuite names (including root)
  3. Print log when test file has no test defined
  4. Add Unit tests
  5. Minor code formatting and function renaming to better reflect logging functionality

Examples after change

Results when no root suite is defined:

  • Regular: image

  • Flatten: image

Results when root suite is defined:

  • Regular: image image

  • Flatten: image image

PS: extra indentation on failed test is associated to the usage of "aegean check mark (U+10102)". Not sure if working as expected or bug. I left is AS-IS.

gian1200 avatar Jan 16 '25 04:01 gian1200

🦋 Changeset detected

Latest commit: ea160ac8362ed2e4c103eab87c07b214e2670e01

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@web/test-runner-mocha Minor
@web/test-runner Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

changeset-bot[bot] avatar Jan 16 '25 04:01 changeset-bot[bot]