mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-05 07:17:52 +10:00
wip major changes
This commit is contained in:
29
archivebox/plugins/run_tests.sh
Executable file
29
archivebox/plugins/run_tests.sh
Executable file
@@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
# Run all plugin tests
|
||||
#
|
||||
# Usage: ./run_tests.sh [plugin_name]
|
||||
#
|
||||
# Examples:
|
||||
# ./run_tests.sh # Run all tests
|
||||
# ./run_tests.sh captcha2 # Run only captcha2 tests
|
||||
# ./run_tests.sh chrome_* # Run all chrome tests
|
||||
|
||||
set -e
|
||||
|
||||
echo "=========================================="
|
||||
echo "Running ArchiveBox Plugin Tests"
|
||||
echo "=========================================="
|
||||
echo ""
|
||||
|
||||
if [ -n "$1" ]; then
|
||||
echo "Running tests for: $1"
|
||||
python -m pytest "$1"/tests/ -v
|
||||
else
|
||||
echo "Running all plugin tests..."
|
||||
python -m pytest */tests/test_*.py -v
|
||||
fi
|
||||
|
||||
echo ""
|
||||
echo "=========================================="
|
||||
echo "Tests Complete"
|
||||
echo "=========================================="
|
||||
Reference in New Issue
Block a user