Skip to content

✅ Run tests in workspace mode#5735

Merged
dubzzz merged 36 commits intomainfrom
vitest-workspace
Mar 20, 2025
Merged

✅ Run tests in workspace mode#5735
dubzzz merged 36 commits intomainfrom
vitest-workspace

Conversation

@dubzzz
Copy link
Copy Markdown
Owner

@dubzzz dubzzz commented Feb 22, 2025

Description

Running tests in a workspace mode leevraged an interseting feature provided by Vitest that could unlock faster execution of tests in our CI.

Thanks to it, we stop having one job per package and move all packages behind the same job. We have to think of potential split of executions between runners (aka sharding).

WARNING: Not ready yet! We are not launching the tests of ava at the moment.

WARNING: We may want not to execute some tests in CI as we did in the past.

ChecklistDon't delete this checklist and make sure you do the following before opening the PR

  • The name of my PR follows gitmoji specification
  • My PR references one of several related issues (if any)
    • New features or breaking changes must come with an associated Issue or Discussion
    • My PR does not add any new dependency without an associated Issue or Discussion
  • My PR includes bumps details, please run pnpm run bump and flag the impacts properly
  • My PR adds relevant tests and they would have failed without my PR (when applicable)

Advanced

  • Category: ✅ Add or update tests
  • Impacts: None

Running tests in a workspace mode leevraged an interseting feature provided by Vitest that could unlock faster execution of tests in our CI.

Thanks to it, we stop having one job per package and move all packages behind the same job. We have to think of potential split of executions between runners.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 22, 2025

⚠️ No Changeset found

Latest commit: 0fb76f1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 22, 2025

Open in Stackblitz@fast-check/examples

@fast-check/ava

npm i https://pkg.pr.new/@fast-check/ava@5735

@fast-check/expect-type

npm i https://pkg.pr.new/@fast-check/expect-type@5735

@fast-check/jest

npm i https://pkg.pr.new/@fast-check/jest@5735

fast-check

npm i https://pkg.pr.new/fast-check@5735

@fast-check/poisoning

npm i https://pkg.pr.new/@fast-check/poisoning@5735

@fast-check/packaged

npm i https://pkg.pr.new/@fast-check/packaged@5735

@fast-check/vitest

npm i https://pkg.pr.new/@fast-check/vitest@5735

@fast-check/worker

npm i https://pkg.pr.new/@fast-check/worker@5735

commit: 0fb76f1

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67ba1f720e6936ccb969b162--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67ba214f71d0f732a9a40516--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67ba224807d225d44c409eb8--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67bcd73aefa6c6348d08320d--dubzzz-fast-check.netlify.app

@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.17%. Comparing base (8152b3d) to head (0fb76f1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5735      +/-   ##
==========================================
+ Coverage   94.73%   96.17%   +1.44%     
==========================================
  Files         212      212              
  Lines       10057    10057              
  Branches     2671     2753      +82     
==========================================
+ Hits         9527     9672     +145     
+ Misses        530      385     -145     
Flag Coverage Δ
tests 96.17% <ø> (?)
tests-against-18.x-on-Linux 96.17% <ø> (?)
tests-against-20.x-on-Linux 96.17% <ø> (?)
tests-against-22.x-on-Linux 96.17% <ø> (?)
tests-against-latest-on-Linux 96.17% <ø> (?)
unit-tests ?
unit-tests-18.x-Linux ?
unit-tests-20.x-Linux ?
unit-tests-22.x-Linux ?
unit-tests-latest-Linux ?

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67bce49f302f0656383df6e1--dubzzz-fast-check.netlify.app

@dubzzz dubzzz enabled auto-merge (squash) February 24, 2025 21:39
@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67bce85f4483ad5fdf2f553e--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67db602f936f28968fd92120--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67db6277ceda37961e94b8e7--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67db6347112c50b0adff185c--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67db651a8522edc12b7e6b40--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67db6bceba20fba10aeec180--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67db6e2920a4c1cfd9dcf32d--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67dbac08e076912566f9bef9--dubzzz-fast-check.netlify.app

Comment thread .github/workflows/build-status.yml Outdated
@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67dbaff5ba20fbe908eec099--dubzzz-fast-check.netlify.app

Comment thread .github/workflows/build-status.yml Outdated
@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67dbb186be282de9e5f0b3f9--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67dbb4027db643324327b221--dubzzz-fast-check.netlify.app

@github-actions
Copy link
Copy Markdown
Contributor

👋 A preview of the new documentation is available at: http://67dca02fee83e4082407d7ad--dubzzz-fast-check.netlify.app

@dubzzz dubzzz merged commit fabe842 into main Mar 20, 2025
45 checks passed
@dubzzz dubzzz deleted the vitest-workspace branch March 20, 2025 23:17
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.

1 participant