Skip to content

chore(ama-sdk-schematics): ignore coverage for generated files #3091

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kpanot
Copy link
Contributor

@kpanot kpanot commented Apr 7, 2025

Proposed change

chore(ama-sdk-schematics): ignore coverage for generated files

Related issues

- No issue associated -

@kpanot kpanot requested a review from a team as a code owner April 7, 2025 04:09
Copy link

nx-cloud bot commented Apr 7, 2025

View your CI Pipeline Execution ↗ for commit cb23d86.

Command Status Duration Result
nx run-many --target=test-int ✅ Succeeded 34m 19s View ↗
nx run-many --target=build --projects=eslint-pl... ✅ Succeeded 1s View ↗
nx run-many --target=test-e2e ✅ Succeeded 2m 33s View ↗
nx run-many --target=publish --nx-bail --userco... ✅ Succeeded 38s View ↗
nx run-many --target=prepare-publish --exclude-... ✅ Succeeded 8s View ↗
nx run-many --target=build,build-swagger ✅ Succeeded 16m 36s View ↗
nx affected --target=lint --configuration ci ✅ Succeeded 15m 24s View ↗
nx affected --target=test --collectCoverage --c... ✅ Succeeded 9m 49s View ↗
Additional runs (3) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-04-30 03:22:58 UTC

Copy link

codecov bot commented Apr 7, 2025

Codecov Report

Attention: Patch coverage is 96.29630% with 1 line in your changes missing coverage. Please review.

Project coverage is 70.31%. Comparing base (76038b6) to head (cb23d86).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...tics/ng-update/typescript/v12.3/coverage-ignore.ts 96.29% 0 Missing and 1 partial ⚠️

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@kpanot kpanot force-pushed the chore/coverage-ignore-sdk branch from 3b05b5a to a502d1c Compare April 7, 2025 05:45
@kpanot kpanot force-pushed the chore/coverage-ignore-sdk branch 5 times, most recently from d8453d0 to d18a465 Compare April 10, 2025 06:53
@kpanot kpanot closed this Apr 10, 2025
@kpanot kpanot force-pushed the chore/coverage-ignore-sdk branch from d18a465 to 41fe54e Compare April 10, 2025 06:59
@kpanot kpanot reopened this Apr 10, 2025
@kpanot kpanot force-pushed the chore/coverage-ignore-sdk branch from 1d2910e to 18e4515 Compare April 10, 2025 07:43
@kpanot kpanot force-pushed the chore/coverage-ignore-sdk branch 4 times, most recently from 23d3705 to df2644f Compare April 11, 2025 06:59
&& ts.isBinaryExpression(statement.expression)
&& /module\.exports/.test(statement.expression.left.getText(rootNode))
&& ts.isObjectLiteralExpression(statement.expression.right)
&& !statement.expression.right.properties.some((prop) => ts.isPropertyAssignment(prop) && prop.name.getText(rootNode) === 'coveragePathIgnorePatterns')
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we try to complete missing files if the coveragePathIgnorePatterns is already defined?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I would say that discovering intersection between globs is a bit too much :D.

@kpanot kpanot force-pushed the chore/coverage-ignore-sdk branch from edd3188 to cb23d86 Compare April 30, 2025 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants