Typicalc/calcCoverage.sh
2021-03-14 11:08:40 +01:00

3 lines
152 B
Bash
Executable File

#!/bin/sh
rg edu.kit.typicalc.model | rg --only-matching -r '$1' 'line-rate="([0-9.]+)"' | head -n 1 | awk '{ print "Test Coverage: " ($1 * 100) "%" }'