-
Notifications
You must be signed in to change notification settings - Fork 15
chore: refactor unit-test and int-test targets
#1061
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@code-pushup/ci
@code-pushup/cli
@code-pushup/create-cli
@code-pushup/models
@code-pushup/core
@code-pushup/nx-plugin
@code-pushup/coverage-plugin
@code-pushup/eslint-plugin
@code-pushup/js-packages-plugin
@code-pushup/jsdocs-plugin
@code-pushup/lighthouse-plugin
@code-pushup/typescript-plugin
@code-pushup/utils
commit: |
Contributor
Code PushUp🥳 Code PushUp report has improved – compared current commit 2f7e96a with previous commit bce59c0. 🕵️ See full comparison in Code PushUp portal 🔍 🏷️ Categories👍 2 groups improved, 👍 5 audits improved, 15 audits changed without impacting score🗃️ Groups
19 other groups are unchanged. 🛡️ Audits
590 other audits are unchanged. |
matejchalk
reviewed
Aug 13, 2025
Collaborator
matejchalk
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup 👍
unit-test and int-test targets
matejchalk
approved these changes
Aug 14, 2025
BioPhoton
added a commit
that referenced
this pull request
Aug 28, 2025
**Followup of:** - #1059 **Precondition:** - #1061 **This PR includes:** - ~add helper to load envVars~ - adjusted `nx.json` - add `defaultTargets` for main and plugin `code-pushup` targets - add default inputs - add plugin caching to code-pushup target - cache js-packages and invalidate daily - GH adjustments - added `affected` and `--parallel=3` - Adjust path helper that that created Nx project graph to use `readCachedProjectGraph` to avoid problems when running plugins in parallel > [!note] > I cache the `js-packges` plugin target, against our discussion, as only in this PR I would have saved ~4min **Followup Todos:** - move `zod2md.ts` under `tools` and leverage `"!{projectRoot}/tools/**/*"` in `nx.json#namedInputs.production` - rename `nx-plugin/mock` to `models/mocks` and adjust inputs - cleanup e2e targets leverage `nx.json#targetDefaults` - include only relevant projects in `plugin-eslint` config - stricter task dependencies to avoid running tracked libs e.g. `nx run test-nx-utils:unit-test` is executed ATM - understand why e2e tests fail if `nx.json#defaultTargets[N].@nx/vite:test` as empty (`{}`) target is removed **Followup PRs:** - #1035 --------- Co-authored-by: John Doe <john.doe@example.com> Co-authored-by: Matěj Chalk <34691111+matejchalk@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR includes:
defaultTargetsforunit-test,int-testunit-test,int-testtargets to generate coverage by default--coverage.enabledand--skipNxCacheform CP targetsunit-test,int-testpassWithNoTeststo all targetsint-testtargetsNote
This PR brings the execution time from 19m down to max 9m for the whole cp report. 🔥