You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
HMG_Patient_App/speech_to_text/scripts/tcov.sh

5 lines
330 B
Bash

# Ensure test errors fail the script
set -e
flutter test --coverage
coverPct=$(genhtml coverage/lcov.info -o coverage | tail -n 2 | head -n 1 | cut -d ' ' -f 4 | sed 's/%//')
scc lib | sed -n '4p' | tr -s ' ' | cut -d ' ' -f 2-7 | sed "s/^/$coverPct,/" | sed 's/ /,/g' | sed "s/^/`date '+%Y\/%m\/%d %H:%M:%S'`,/" >> codestats.csv