Skip to content

test: use Rstest as Rslib's test framework #1090

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 3 commits into from
Jul 4, 2025
Merged

test: use Rstest as Rslib's test framework #1090

merged 3 commits into from
Jul 4, 2025

Conversation

fi3ework
Copy link
Member

@fi3ework fi3ework commented Jun 26, 2025

Summary

  • unit test
  • integration test
  • clean config
  • depend on latest version

Use Rstest as Rslib's test framework, with following shortage will be resolved in future versions:

  • benchmark is disabled for now, despite it's not being used as of now.
  • projects(workspace) is not supported yet, so some dep/devDep packages is effected in config snapshot.

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copy link

netlify bot commented Jun 26, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit af0d996
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/6867a5ef5b6dd800085effe0
😎 Deploy Preview https://deploy-preview-1090--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@fi3ework fi3ework force-pushed the rstest branch 14 times, most recently from f487311 to 1549e5f Compare July 2, 2025 11:43
@fi3ework fi3ework marked this pull request as ready for review July 2, 2025 11:43
@fi3ework fi3ework requested a review from Timeless0911 July 2, 2025 11:48
@Timeless0911 Timeless0911 changed the title chore: supersede Vitest with Rstest test: use Rstest as Rslib's test framework Jul 4, 2025
Timeless0911
Timeless0911 previously approved these changes Jul 4, 2025
@fi3ework
Copy link
Member Author

fi3ework commented Jul 4, 2025

We need hookTimeout to let the test be stable.

Co-authored-by: Timeless0911 <[email protected]>
@fi3ework fi3ework merged commit 202fa68 into main Jul 4, 2025
14 checks passed
@fi3ework fi3ework deleted the rstest branch July 4, 2025 10:27
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.

3 participants