Typicalc/calcCoverage.sh

3 lines
152 B
Bash
Raw Normal View History

2021-03-14 10:08:33 +00:00
#!/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) "%" }'