/
left76
/
cli
Обзор
Документация
Войти
/
left76
/
cli
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
scripts/test/unit-with-coverage
19 строк
432 B
Daniel Nephin
Use golden files for tests that expect end-of-line whitespace
08 сен 2017, 00:50
08 сен 2017, 00:50
51587de
Код
Авторство
О чём код?
#!/usr/bin/env bash set -eu -o pipefail # install test dependencies once before running tests for each package. This # reduces the runtime from 200s down to 23s go test -i "$@" for pkg in "$@"; do ./scripts/test/unit \ -cover \ -coverprofile=profile.out \ -covermode=atomic \ "${pkg}" if test -f profile.out; then cat profile.out >> coverage.txt rm profile.out fi done