Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(summaryReporter): fix report for nested suites #2860

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

gian1200
Copy link

@gian1200 gian1200 commented Jan 16, 2025

Fixes #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.

Copy link

changeset-bot bot commented Jan 16, 2025

🦋 Changeset detected

Latest commit: ea160ac

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

@gian1200 gian1200 force-pushed the feature/fix-summary-reporter branch from 6afb966 to d8dbca7 Compare January 16, 2025 04:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

summaryReporter doesn't print main testSuite when there are nested testSuites
1 participant