Skip to content

Commit 021819e

Browse files
committed
Reduce the amount of colour output
1 parent 4e7e5ec commit 021819e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -38,21 +38,27 @@ function run_python_tests() {
3838
if [[ "$(pwd)" == ~/repos/library-lookup ]]
3939
then
4040
print_info '-> mypy *.py src tests'
41-
mypy *.py src tests
41+
mypy *.py src tests --no-color-output
4242
else
4343
print_info '-> mypy src tests'
44-
mypy src tests
44+
mypy src tests --no-color-output
4545
fi
4646

4747
echo ""
4848

4949
print_info "-> coverage run -m pytest tests"
50-
coverage run -m pytest tests --quiet
50+
coverage run -m pytest tests --quiet --color=no
5151

5252
echo ""
5353

5454
print_info "-> coverage report"
55-
coverage report
55+
56+
if [[ $(coverage report --format="100") ]]
57+
then
58+
echo "100% coverage!"
59+
else
60+
coverage report
61+
fi
5662
}
5763

5864
function run_rust_tests() {

0 commit comments

Comments
 (0)