We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e7e5ec commit 021819eCopy full SHA for 021819e
ts
@@ -38,21 +38,27 @@ function run_python_tests() {
38
if [[ "$(pwd)" == ~/repos/library-lookup ]]
39
then
40
print_info '-> mypy *.py src tests'
41
- mypy *.py src tests
+ mypy *.py src tests --no-color-output
42
else
43
print_info '-> mypy src tests'
44
- mypy src tests
+ mypy src tests --no-color-output
45
fi
46
47
echo ""
48
49
print_info "-> coverage run -m pytest tests"
50
- coverage run -m pytest tests --quiet
+ coverage run -m pytest tests --quiet --color=no
51
52
53
54
print_info "-> coverage report"
55
- coverage report
+
56
+ if [[ $(coverage report --format="100") ]]
57
+ then
58
+ echo "100% coverage!"
59
+ else
60
+ coverage report
61
+ fi
62
}
63
64
function run_rust_tests() {
0 commit comments