feat(testing): add unified quality gates and coverage baseline
This commit is contained in:
@@ -262,6 +262,24 @@ EOF
|
||||
assert_not_contains "$upstream_headers" "Authorization:"
|
||||
}
|
||||
|
||||
run_test_verify_quality_gates_script() {
|
||||
local script threshold_file script_contents
|
||||
script="$ROOT_DIR/scripts/test/verify_quality_gates.sh"
|
||||
threshold_file="$ROOT_DIR/tests/quality/coverage_thresholds.tsv"
|
||||
|
||||
[[ -f "$script" ]] || fail "missing $script"
|
||||
[[ -f "$threshold_file" ]] || fail "missing $threshold_file"
|
||||
|
||||
script_contents="$(cat "$script")"
|
||||
assert_contains "$script_contents" "gofmt -l ."
|
||||
assert_contains "$script_contents" "go vet ./..."
|
||||
assert_contains "$script_contents" "go test -cover ./internal/..."
|
||||
assert_contains "$script_contents" "go test ./tests/integration/... -count=1"
|
||||
assert_contains "$script_contents" "Coverage Gate Report"
|
||||
assert_contains "$script_contents" "tests/quality/coverage_thresholds.tsv"
|
||||
assert_contains "$script_contents" "tier_by_package"
|
||||
}
|
||||
|
||||
run_test_import_remote43_provider_subscription_prep() {
|
||||
local tmpdir fakebin artifact_dir ssh_log summary_file pack_dir
|
||||
tmpdir="$(mktemp -d)"
|
||||
@@ -1041,5 +1059,6 @@ run_test_verify_route_data_plane_script
|
||||
run_test_verify_route_health_ui_script
|
||||
run_test_remote43_patched_stack_renderers
|
||||
run_test_setup_remote43_patched_stack_dry_run
|
||||
run_test_verify_quality_gates_script
|
||||
|
||||
echo "PASS: real host script regression checks"
|
||||
|
||||
Reference in New Issue
Block a user