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

✨(vitest) Introduce new built-in fuzz #4200

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

✨(vitest) Introduce new built-in fuzz #4200

wants to merge 8 commits into from

Conversation

dubzzz
Copy link
Owner

@dubzzz dubzzz commented Sep 5, 2023

The new built-in is fuzz. It came out of a discussion started on Vitest's official repository.

Compared to previously proposed it.prop and related, it uses the APIs offered by Vitest to plug itself. It feels more aligned with the phylosophy currently adopted by the Vitest with a dedicated keywork per kind of runner.

It will probably replace the it.prop and related really soon.

Category:

  • ✨ Introduce new features
  • 📝 Add or update documentation
  • ✅ Add or update tests
  • 🐛 Fix a bug
  • 🏷️ Add or update types
  • ⚡️ Improve performance
  • Other(s): ...

Potential impacts:

  • Generated values
  • Shrink values
  • Performance
  • Typings
  • Other(s): ...

The new built-in is `fuzz`. It came out of a discussion started on Vitest's official repository.

Compared to previously proposed `it.prop` and related, it uses the APIs offered by Vitest to plug itself. It feels more aligned with the phylosophy currently adopted by the Vitest with a dedicated keywork per kind of runner.

It will probably replace the `it.prop` and related really soon.
@dubzzz
Copy link
Owner Author

dubzzz commented Sep 5, 2023

Still to do in order to merge this PR:

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 5, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7927040:

Sandbox Source
Vanilla Configuration
@fast-check/examples Configuration

@codecov
Copy link

codecov bot commented Sep 5, 2023

Codecov Report

Merging #4200 (7927040) into main (341305b) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #4200   +/-   ##
=======================================
  Coverage   94.71%   94.71%           
=======================================
  Files         210      210           
  Lines        5958     5958           
  Branches     1370     1370           
=======================================
  Hits         5643     5643           
  Misses        299      299           
  Partials       16       16           
Flag Coverage Δ
unit-tests 94.71% <ø> (ø)
unit-tests-16.x-Linux 94.71% <ø> (ø)
unit-tests-18.x-Linux 94.71% <ø> (ø)
unit-tests-latest-Linux 94.69% <ø> (-0.02%) ⬇️

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

@dubzzz dubzzz added the 🧪 Experiment Performing some experiments for potential future features implying deep changes label Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧪 Experiment Performing some experiments for potential future features implying deep changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant