You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-06-11 19:08:13 +03:00
Add coverage and code quality badges.
This commit is contained in:
15
postgres_exporter_integration_test_script
Executable file
15
postgres_exporter_integration_test_script
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# This script wraps the integration test binary so it produces concatenated
|
||||
# test output.
|
||||
|
||||
test_binary=$1
|
||||
shift
|
||||
output_cov=$1
|
||||
shift
|
||||
|
||||
echo "mode: count" > $output_cov
|
||||
|
||||
test_cov=$(mktemp)
|
||||
$test_binary -test.coverprofile=$test_cov $@
|
||||
tail -n +2 $test_cov >> $output_cov
|
||||
rm -f $test_cov
|
Reference in New Issue
Block a user