15 lines
365 B
Bash
Executable File
15 lines
365 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
if [ -d "venv" ]; then
|
|
source venv/bin/activate
|
|
fi
|
|
|
|
if [ -z "$1" ]; then
|
|
echo "Please input k parameter"
|
|
exit 1
|
|
fi
|
|
|
|
pytest ./ -k "$1" --tb=short --exitfirst -qrA --log-cli-level=INFO --json-report --json-report-summary --json-report-file=detailed_report.json --html=report.html --self-contained-html --continue-on-collection-errors
|