webdriverio / webdriverio

Next-gen browser and mobile automation test framework for Node.js
http://webdriver.io
MIT License
9.04k stars 2.5k forks source link

[💡 Feature]: Vitest #8309

Closed Suyashtnt closed 2 years ago

Suyashtnt commented 2 years ago

Is your feature request related to a problem?

Im using vitest for testing my app, and I would really like it if i didnt have to use 2 separate testing frameworks in 1 app

Describe the solution you'd like.

The ability to use vitest as a test runner

Describe alternatives you've considered.

Using mocha as the test driver

Additional context

No response

Code of Conduct

christian-bromann commented 2 years ago

Hi @Suyashtnt , thanks for raising the issue.

What advantages would have a vitest integration and which kind of features are you missing with the current WebdriverIO setup?

Suyashtnt commented 2 years ago

Hi @Suyashtnt , thanks for raising the issue.

What advantages would have a vitest integration and which kind of features are you missing with the current WebdriverIO setup?

The advantages are is that its stupidly fast and it intergrates directly into your vite config, and it can also be used for unit testing. The feature I mainly miss is not having that speed I usually expect is vitest

christian-bromann commented 2 years ago

The feature I mainly miss is not having that speed I usually expect is vitest

e2e tests are by nature slower than unit test and building a vitest integration into the wdio testrunner won't have much of a speed impact. I like many concepts of the vitest framework and would not mind if someone would like to work on a wdio integration of that framework. I am happy to support this effort and recommend to look at the existing framework integrations for reference.

I will close this issue as I don't think it is something that the core team is considering putting on the roadmap anytime soon.