[英]show flutter test coverage
I am a bit new to testing world in flutter. what I want to achieve is to determine my test coverage in flutter.我对 flutter 中的测试世界有点陌生。我想要实现的是确定我在 flutter 中的测试覆盖率。
but I don't know any way to determine my test coverage , any help is appreciated.但我不知道有什么方法可以确定我的测试覆盖率,我们将不胜感激。
Thanks.谢谢。
In a easy way, you can determine the test coverage threshold using this package https://pub.dev/packages/dlcov以简单的方式,您可以使用此 package https://pub.dev/packages/dlcov确定测试覆盖率阈值
usage example:使用示例:
dlcov --lcov-gen="flutter test --coverage" --coverage=100
--lcov-gen
Generate the lcov.info
file --lcov-gen
生成lcov.info
文件
--coverage=100
To determine if the test coverage threshold is 100% --coverage=100
判断测试覆盖率阈值是否为100%
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.