2 ms·
> pre-commit tests that runs as commit hook Also hate those. What I do instead is have the tests run as part of the build. If the tests fail, the build fail
by mpweiher 4y ago
> pre-commit tests that runs as commit hook
Also hate those.
What I do instead is have the tests run as part of the build. If the tests fail, the build fails.
Definitely a good motivator for having fast tests, which is essential. The ones for my projects tend to run in about a second or two.
Also gives you way greater confidence in your tests.
Try it!
https://blog.metaobject.com/2020/05/mpwtest-reducing-test-friction-by-going.html https://blog.metaobject.com/2020/05/mpwtest-reducing-test-fr...
https://blog.metaobject.com/2020/06/mpwtest-only-tests-frameworks.html https://blog.metaobject.com/2020/06/mpwtest-only-tests-frame...