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 junit and jest-stare output in wrong folder #174

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

t1m0thyj
Copy link
Member

What It Does

Typically the __tests__/__results__ directory is structured like the following for unit test results:

__tests__
 |- __results__
     |- unit
        |- coverage
        |- jest-stare
        |- junit.xml

This PR fixes jest-stare folder being duplicated and junit.xml file being at wrong level:

__tests__
 |- __results__
     |- jest-stare
     |- unit
        |- coverage
        |- jest-stare
     |- junit.xml

How to Test

Review Checklist
I certify that I have:

Additional Comments

Once this PR and related ones for other plug-ins are merged, the Zowe CLI Coverage workflow should start passing again 😋

Copy link

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.52%. Comparing base (6e15ba0) to head (699444d).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #174   +/-   ##
=======================================
  Coverage   73.52%   73.52%           
=======================================
  Files          77       77           
  Lines         982      982           
  Branches      132      128    -4     
=======================================
  Hits          722      722           
  Misses        260      260           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@zFernand0 zFernand0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing! 🙏

I didn't realize that the results where not passed to other reporters as expected

# Before
**  jest-stare --testResultsProcessor: wrote output report to __tests__/__results__/unit/jest-stare/index.html  **

# After
**  jest-stare --testResultsProcessor: wrote output report to __tests__/__results__/unit/jest-stare/index.html  **
**  jest-stare passed results to additional processor "jest-junit"      **
**  jest-stare passed results to additional processor "jest-html-reporter"      **

@t1m0thyj t1m0thyj merged commit 99c4c3b into master Oct 14, 2024
18 checks passed
@t1m0thyj t1m0thyj deleted the fix/jest-stare-config branch October 14, 2024 13:37
@t1m0thyj t1m0thyj added the release-current Indicates that there is no new functionality being delivered label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog release-current Indicates that there is no new functionality being delivered
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

4 participants