Run selectively test cases

Do you want to request a feature or report a bug?

feature

What is the current behavior?

When someone wants to contribute with a small change and run tests, the developer needs to wait for all the tests (which are a lot) to run.

If the current behavior is a bug, please provide the steps to reproduce.

What is the expected behavior?

I can indicate in the command which test to run like:

yarn test ./test/someTest.js

or:

yarn test --testCase="./test/someTest.js"

React does something similar in its packages: https://reactjs.org/docs/how-to-contribute.html#development-workflow

If also performance can be improved to make tests run faster, double win.

If this is a feature request, what is motivation or use case for changing the behavior?

This will remove a lot of friction to contributing, I’ve recently submitted a PR with an improvement on warning messages and had to run the entire test suite because I was changing the lines and content of a string.

Author: Fantashit

1 thought on “Run selectively test cases

  1. More than increasing the complexity of the contributing process with hacks-like instructions on the CONTRIBUTING.md file I prefer for us to think about improvements or refactors if they are necessary 🙂

Comments are closed.