- Stop running daily service tests in the main repo (since they're now handled [over here](https://github.com/badges/daily-tests) - Add coverage and separate daily tests badges with links to coveralls - Update our coverage ignores - Move scripts, which do not need coverage, into `scripts/` - Split out coverage test for npm package - Remove spurious env var Ref: #1584 #2314
12 lines
299 B
Bash
Executable File
12 lines
299 B
Bash
Executable File
#!/bin/sh
|
|
|
|
PROFILE_MAKE_BADGE=1 node server 1111 >perftest.log &
|
|
sleep 2
|
|
for ((i=0;i<10000;i++)); do
|
|
curl -s http://localhost:1111/badge/coverage-"$i"%-green.svg >/dev/null
|
|
done
|
|
kill $(jobs -p)
|
|
<perftest.log grep 'makeBadge total' | \
|
|
grep -Eo '[0-9\.]+' | \
|
|
awk '{s+=$1;n++} END {print s/n}'
|