Skip to content

feat(plugin-coverage): add setup wizard binding#1273

Merged
hanna-skryl merged 6 commits intomainfrom
coverage-plugin-binding
Mar 20, 2026
Merged

feat(plugin-coverage): add setup wizard binding#1273
hanna-skryl merged 6 commits intomainfrom
coverage-plugin-binding

Conversation

@hanna-skryl
Copy link
Collaborator

@hanna-skryl hanna-skryl commented Mar 19, 2026

Closes #1254

Coverage plugin binding for the setup wizard. Auto-detects Jest/Vitest, prompts for coverage options with smart defaults, and generates plugin initialization code.

For Jest/Vitest, generateConfig receives the wizard's virtual tree and uses magicast (0.3.x, as the latest 0.5.x is incompatible with our moduleResolution: "node") to add an LCOV reporter to the test config. If the modification fails, a comment is prepended to pluginInit to remind the user to configure LCOV manually.

@nx-cloud
Copy link

nx-cloud bot commented Mar 19, 2026

View your CI Pipeline Execution ↗ for commit c0584a5

Command Status Duration Result
nx run ci:code-pushup -- merge-diffs --files=/h... ✅ Succeeded 5s View ↗
nx run-many --targets=code-pushup --parallel=fa... ✅ Succeeded 1m 29s View ↗
nx run-many --targets=code-pushup --parallel=fa... ✅ Succeeded 13m 12s View ↗
nx run-many -t unit-test,int-test ✅ Succeeded 1m 25s View ↗

☁️ Nx Cloud last updated this comment at 2026-03-20 13:26:19 UTC

@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 19, 2026

Open in StackBlitz

@code-pushup/ci

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/ci@1273

@code-pushup/cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/cli@1273

@code-pushup/core

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/core@1273

@code-pushup/create-cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/create-cli@1273

@code-pushup/models

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/models@1273

@code-pushup/nx-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/nx-plugin@1273

@code-pushup/axe-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/axe-plugin@1273

@code-pushup/coverage-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/coverage-plugin@1273

@code-pushup/eslint-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/eslint-plugin@1273

@code-pushup/js-packages-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/js-packages-plugin@1273

@code-pushup/jsdocs-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/jsdocs-plugin@1273

@code-pushup/lighthouse-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/lighthouse-plugin@1273

@code-pushup/typescript-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/typescript-plugin@1273

@code-pushup/utils

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/utils@1273

commit: c0584a5

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit f620c71 with previous commit 28ccfcb.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Updates 🟡 72 🟡 73 ↑ +0.5
Performance 🔴 36 🔴 36 ↑ +0.3
Documentation 🟡 52 🟡 52 ↓ −0.1
Code coverage 🟢 92 🟢 92 ↑ +0.1
Bug prevention 🟡 75 🟡 75 ↓ −0.1
Axe Accessibility 🟡 88 🟡 88 ↓ −0.1
Code style 🟢 100 🟢 100
Security 🔴 0 🔴 0
Type Safety 🟡 67 🟡 67
Miscellaneous 🟡 67 🟡 67
Accessibility 🟢 92 🟢 92
Best Practices 🟢 100 🟢 100
SEO 🟢 92 🟢 92
👍 3 groups improved, 👎 1 group regressed, 👍 8 audits improved, 👎 3 audits regressed, 14 audits changed without impacting score

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
JS packages npm outdated dependencies 🟡 72 🟡 73 ↑ +0.5
Lighthouse Performance 🔴 36 🔴 36 ↑ +0.3
JSDocs coverage Documentation coverage 🟡 52 🟡 52 ↓ −0.1
Code coverage Code coverage metrics 🟢 92 🟢 92 ↑ +0.1

30 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Lighthouse Max Potential First Input Delay 🟥 710 ms 🟥 560 ms ↓ −20.6 %
Lighthouse First Contentful Paint 🟥 3.3 s 🟥 3.2 s ↓ −1.6 %
JS packages Outdated npm dev dependencies. 🟨 61 outdated package versions (32 major, 24 minor, 5 patch) 🟨 62 outdated package versions (33 major, 23 minor, 6 patch) ↑ +1.6 %
Lighthouse Speed Index 🟥 6.1 s 🟥 6.0 s ↓ −0.3 %
JS packages Outdated npm prod dependencies. 🟨 22 outdated package versions (7 major, 12 minor, 3 patch) 🟨 23 outdated package versions (7 major, 13 minor, 3 patch) ↑ +4.5 %
JSDocs coverage Variables coverage 🟥 291 undocumented variables 🟥 302 undocumented variables ↑ +3.8 %
JSDocs coverage Functions coverage 🟥 635 undocumented functions 🟥 646 undocumented functions ↑ +1.7 %
JSDocs coverage Types coverage 🟥 279 undocumented types 🟥 281 undocumented types ↑ +0.7 %
Code coverage Function coverage 🟩 94 % 🟩 94 % ↑ +0.1 %
Code coverage Line coverage 🟩 92.1 % 🟩 92.2 % ↑ +0.1 %
Code coverage Branch coverage 🟨 89.1 % 🟨 89.1 % ↑ +0.1 %
Lighthouse Largest Contentful Paint 🟥 14.0 s 🟥 9.9 s ↓ −29.3 %
Lighthouse Uses efficient cache policy on static assets 🟨 31 resources found 🟨 31 resources found ↑ +0.4 %
Lighthouse Avoids enormous network payloads 🟩 Total size was 2,417 KiB 🟩 Total size was 2,416 KiB ↓ −0.1 %
Lighthouse Server Backend Latencies 🟩 1,390 ms 🟩 330 ms ↓ −76.1 %
Lighthouse Reduce unused JavaScript 🟥 Potential savings of 298 KiB 🟥 Potential savings of 297 KiB ↓ −32 %
Lighthouse Remove duplicate modules in JavaScript bundles 🟥 Potential savings of 112 KiB 🟥 Potential savings of 108 KiB ↓ −64.3 %
Lighthouse JavaScript execution time 🟥 3.3 s 🟥 3.6 s ↑ +8.6 %
Lighthouse Minimizes main-thread work 🟥 10.3 s 🟥 10.1 s ↓ −2 %
Lighthouse Time to Interactive 🟥 14.7 s 🟥 14.5 s ↓ −1.4 %
Lighthouse Metrics 🟩 100% 🟩 100% ↓ −1.4 %
Lighthouse Reduce unused CSS 🟥 Potential savings of 111 KiB 🟥 Potential savings of 77 KiB ↓ −40 %
Lighthouse Total Blocking Time 🟥 2,050 ms 🟥 2,100 ms ↑ +2.5 %
Lighthouse Network Round Trip Times 🟩 50 ms 🟩 70 ms ↑ +35.1 %
Lighthouse Initial server response time was short 🟩 Root document took 500 ms 🟩 Root document took 500 ms ↑ +1.4 %

653 other audits are unchanged.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 19, 2026

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit f620c71 with previous commit 28ccfcb.

💼 Project plugin-coverage

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage 🟢 92 🟢 93 ↑ +1.5
Documentation 🟡 69 🟡 68 ↓ −1

4 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 3 audits improved, 👎 1 audit regressed, 2 audits changed without impacting score

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage Code coverage metrics 🟢 92 🟢 93 ↑ +1.5
JSDocs coverage Documentation coverage 🟡 69 🟡 68 ↓ −1

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
JSDocs coverage Functions coverage 🟥 22 undocumented functions 🟥 33 undocumented functions ↑ +50 %
Code coverage Function coverage 🟩 93.5 % 🟩 95.7 % ↑ +2.2 %
Code coverage Line coverage 🟨 89.1 % 🟩 91 % ↑ +2.2 %
Code coverage Branch coverage 🟨 89.6 % 🟨 89.7 % ↑ +0.1 %
JSDocs coverage Variables coverage 🟥 13 undocumented variables 🟥 24 undocumented variables ↑ +84.6 %
JSDocs coverage Types coverage 🟥 8 undocumented types 🟥 10 undocumented types ↑ +25 %

438 other audits are unchanged.

💼 Project models

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Documentation 🟡 67 🟡 67 ↑ +0.1
Code coverage 🟢 94 🟢 94 ↓ −0.1

2 other categories are unchanged.

👍 1 group improved, 👎 1 group regressed, 👍 1 audit improved, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
JSDocs coverage Documentation coverage 🟡 67 🟡 67 ↑ +0.1
Code coverage Code coverage metrics 🟢 94 🟢 94 ↓ −0.1

10 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
JSDocs coverage Types coverage 🟥 64 undocumented types 🟥 64 undocumented types  +0 %
Code coverage Line coverage 🟩 95 % 🟩 94.6 % ↓ −0.4 %

435 other audits are unchanged.

💼 Project create-cli

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage 🟢 90 🟢 90 ↑ +0.1

5 other categories are unchanged.

👍 1 group improved, 👍 1 audit improved

🗃️ Groups

🔌 Plugin 🗃️ Group ⭐ Previous score ⭐ Current score 🔄 Score change
Code coverage Code coverage metrics 🟢 90 🟢 90 ↑ +0.1

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin 🛡️ Audit 📏 Previous value 📏 Current value 🔄 Value change
Code coverage Line coverage 🟩 91.2 % 🟩 91.2 % ↑ +0.1 %

442 other audits are unchanged.


11 other projects are unchanged.

@hanna-skryl hanna-skryl marked this pull request as ready for review March 19, 2026 00:28
@hanna-skryl hanna-skryl requested a review from matejchalk as a code owner March 19, 2026 00:28
Copy link
Collaborator

@matejchalk matejchalk left a comment

Choose a reason for hiding this comment

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

The new adjustments mechanism is very elegant. 👍

Copy link
Collaborator

@matejchalk matejchalk left a comment

Choose a reason for hiding this comment

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

(I clicked Approve automatically without thinking. 🤦)

@hanna-skryl hanna-skryl merged commit c91375e into main Mar 20, 2026
24 checks passed
@hanna-skryl hanna-skryl deleted the coverage-plugin-binding branch March 20, 2026 14:10
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.

Coverage plugin setup wizard

2 participants