mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-23 01:21:07 +01:00
ca6cfb81a2
Import pytest coverage script.
11 lines
270 B
Bash
Executable File
11 lines
270 B
Bash
Executable File
#!/bin/sh
|
|
_cdir=$(cd -- "$(dirname "$0")" && pwd)
|
|
type py.test > /dev/null 2>&1
|
|
if [ $? -ne 0 ]; then
|
|
echo "err: py.test (Python testing framework) not found."
|
|
exit 1
|
|
fi
|
|
cd -- "${_cdir}/.."
|
|
mkdir -p html
|
|
py.test -v --cov-report=html:html/coverage --cov=ssh-audit test
|