flutter driver --driver=test_driver/integration_test.dart --target=integration_test/app_test.dart --flavor development
统计覆盖率
1 2 3 4 5 6 7 8 9 10 11 12
# Generate `coverage/lcov.info` file # 运行测试脚本 flutter test --coverage # Generate HTML report# Note: on macOS you need to have lcov installed on your system (`brew install lcov`) to use this: # 将生成文件转换成html文件 genhtml coverage/lcov.info -o coverage/html # Open the report open coverage/html/index.html