Flow: Add an option to require minimum coverage

Created on 8 Dec 2016  路  2Comments  路  Source: facebook/flow

Add an option (such as --minimum-coverage <number %>) to flow check that would require code coverage to be equal or greater to the set threshold. If threshold is not set, exit with exit code 1.

This would be useful for precommit and CI integration.

coverage feature request

Most helpful comment

https://www.npmjs.com/package/flow-coverage-report can help with that, it offers a threshold option!

All 2 comments

I've thought about having flow check and flow status report coverage. I think that'd be more flexible, and your commit hook or CI integration could error on its own.

https://www.npmjs.com/package/flow-coverage-report can help with that, it offers a threshold option!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

glenjamin picture glenjamin  路  3Comments

marcelbeumer picture marcelbeumer  路  3Comments

ghost picture ghost  路  3Comments

cubika picture cubika  路  3Comments

john-gold picture john-gold  路  3Comments