mirror of https://github.com/crytic/slither
parent
437e0c7d66
commit
18bbe56186
@ -1,7 +1,13 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
# used to pass --cov=$path and --cov-append to pytest |
||||
pytest "$1" tests/unit/ |
||||
if [ "$1" != "" ]; then |
||||
pytest "$1" tests/unit/ |
||||
status_code=$? |
||||
python -m coverage report |
||||
fi |
||||
else |
||||
pytest tests/unit/ |
||||
status_code=$? |
||||
fi |
||||
|
||||
exit "$status_code" |
Loading…
Reference in new issue