Rich-Harris / butternut

The fast, future-friendly minifier
https://butternut.now.sh
MIT License
1.17k stars 17 forks source link

add fuzz testing with eslump #87

Closed Rich-Harris closed 7 years ago

Rich-Harris commented 7 years ago

This adds an npm run test:fuzz command, and closes #8. On encountering an error, the offending code will be written out to test/fixtures/input/_test.js, which is treated specially — if it contains code, then npm test will only try minifying that code until it's able to do so correctly.

lydell commented 7 years ago

I would recommend locking down the eslump version: https://github.com/eslint/eslint/pull/8422#issuecomment-292707246