platform/sandbox/eventbus/tool/coverage.sh
2024-11-12 01:00:05 -07:00

13 lines
295 B
Bash
Executable file

#!/bin/sh
cd ..
# 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:
genhtml coverage/lcov.info -o coverage/html
# Open the report
open coverage/html/index.html