Skip to content

test: use Rstest as Rsdoctor's test framework #1181

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

test: use Rstest as Rsdoctor's test framework #1181

merged 4 commits into from
Jul 21, 2025

Conversation

9aoy
Copy link
Contributor

@9aoy 9aoy commented Jul 21, 2025

Summary

Use Rstest as Rsdoctor's test framework. 🌟

  • use rstest instead of vitest.
  • use source.tsconfigPath instead of vite-tsconfig-paths dependency. ( 👈 core performance improvement point)
  • use source.decorators instead of tsconfig experimentalDecorators option.

before:

npx vitest run  20.13s user 6.76s system 326% cpu 8.244 total

after:

npx rstest run  15.77s user 4.83s system 368% cpu 5.595 total
image image

Related Links

https://rstest.rs/

https://rsbuild.rs/guide/migration/vite#vite-tsconfig-paths

Copy link

netlify bot commented Jul 21, 2025

Deploy Preview for rsdoctor ready!

Name Link
🔨 Latest commit 6dcae87
🔍 Latest deploy log https://app.netlify.com/projects/rsdoctor/deploys/687e01b8bafacc0008551b7f
😎 Deploy Preview https://deploy-preview-1181--rsdoctor.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.

@9aoy 9aoy requested a review from easy1090 July 21, 2025 08:01
@9aoy 9aoy enabled auto-merge (squash) July 21, 2025 09:13
@9aoy 9aoy merged commit 4d466fe into main Jul 21, 2025
7 checks passed
@9aoy 9aoy deleted the rstest branch July 21, 2025 09:13
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.

2 participants