netlify / build

Netlify Build (node process) runs the build command, Build Plugins and bundles Netlify Functions. Can be run in Buildbot or locally using Netlify CLI
https://docs.netlify.com/configure-builds/build-plugins/
MIT License
216 stars 54 forks source link

[chore] Speed up tests #661

Closed DavidWells closed 4 years ago

DavidWells commented 4 years ago

Running the test suite is a big issue for local development. The tests are taking upwards of 5 minutes locally on a MacBook Pro (2017), 3.1 GHz Intel Core i7, 16 GB 2133 MHz LPDDR3.

The memory consumed while tests are running causing my machine to become unusable while the test suite is running in the pre-push githook. @RaeesBhatti has reported similar troubles with his machine.

Which problem is this feature request solving?

This is impacting my workflow & the feedback loop is troublesome.

Describe the solution you'd like

Any advice on how to fix this or avoid this in the current workflow would be awesome.

Potential ways to alleviate issues.

Any insights would be much appreciated!

DavidWells commented 4 years ago

The current workaround is:

git push --set-upstream origin myBranchName --no-verify
ehmicky commented 4 years ago

Since 8c0660fa, tests are not run automatically on git push anymore, they are only run in CI or when manually calling ava.

That being said, I agree the tests are slow and should be sped up.

ehmicky commented 4 years ago

The tests have now been speed up: