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

Custom test runner #1470

Closed
4 tasks done
black7375 opened this issue Jun 13, 2022 · 2 comments · Fixed by #2721
Closed
4 tasks done

Custom test runner #1470

black7375 opened this issue Jun 13, 2022 · 2 comments · Fixed by #2721
Labels
enhancement New feature or request

Comments

@black7375
Copy link

black7375 commented Jun 13, 2022

Clear and concise description of the problem

Jest ecosystem has jest-runner or create-jest-runner.

It can be extended to test in an environment such as an electron.
Also, It would be nice to be able to perform lint or typecheck with the efficient worker of tinypool.

Suggested solution

I'd like to provide an API for setting up a custom runner.

Alternative

It can also refer to Jest's projects config.

Additional context

No response

Validations

@sheremet-va sheremet-va added the enhancement New feature or request label Jun 13, 2022
@sheremet-va
Copy link
Member

I'd like to provide an API for setting up a custom runner.

Ready to hear it 😄

Right now we run our tests in packages/vitest/src/runtime/run.ts. You can look it up for reference

@acutmore
Copy link

Some more info here on Jest's custom test runner:
https://www.youtube.com/watch?v=NtjyeojAOBs "ReactiveConf 2017 - Rogelio Guzman: Jest as a Platform"

docschina-bot pushed a commit to vitest-dev/docs-cn that referenced this issue Jan 23, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jun 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants