mirror of
https://github.com/lightbroker/llmsecops-research.git
synced 2026-08-19 09:37:15 +02:00
support testing malicious prompts with no guidelines
This commit is contained in:
+21
-18
@@ -10,6 +10,13 @@ python_files = test_*.py *_test.py
|
||||
python_classes = Test* *Tests
|
||||
python_functions = test_*
|
||||
|
||||
# Custom markers
|
||||
markers =
|
||||
unit: marks tests as unit tests
|
||||
integration: marks tests as integration tests
|
||||
e2e: marks tests as end-to-end tests
|
||||
slow: marks tests as slow
|
||||
|
||||
# Test paths - pytest will look for tests in these directories
|
||||
testpaths =
|
||||
tests
|
||||
@@ -18,31 +25,33 @@ testpaths =
|
||||
tests/e2e
|
||||
|
||||
# Additional command line options (applied to every pytest run)
|
||||
addopts =
|
||||
# Verbose output with more details
|
||||
addopts =
|
||||
-v
|
||||
# Show extra test summary info for all except passed tests
|
||||
-ra
|
||||
# Show local variables in tracebacks
|
||||
--tb=short
|
||||
# Enable strict mode for markers and configuration
|
||||
--strict-markers
|
||||
--strict-config
|
||||
# Capture stdout/stderr per-test
|
||||
--capture=no
|
||||
# Show slowest 10 tests
|
||||
--durations=10
|
||||
# Enable coverage reporting (requires pytest-cov)
|
||||
--cov=src
|
||||
--cov-report=term-missing
|
||||
--cov-report=html:htmlcov
|
||||
--cov-report=xml
|
||||
# Fail if coverage is below threshold
|
||||
--cov-fail-under=80
|
||||
--cov-fail-under=25
|
||||
--ignore-glob=**/migrations/*
|
||||
--ignore-glob=**/.tox/*
|
||||
--ignore-glob=**/build/*
|
||||
--ignore-glob=**/dist/*
|
||||
--ignore-glob=**/*.egg
|
||||
--ignore-glob=**/.git/*
|
||||
--ignore-glob=**/__pycache__/*
|
||||
--ignore-glob=**/.pytest_cache/*
|
||||
--ignore-glob=**/node_modules/*
|
||||
--ignore-glob=**/.env/*
|
||||
|
||||
|
||||
# Ignore certain directories and files during test collection
|
||||
ignore =
|
||||
norecursedirs =
|
||||
setup.py
|
||||
conftest.py
|
||||
migrations/
|
||||
@@ -76,19 +85,13 @@ filterwarnings =
|
||||
ignore:.*U.*mode is deprecated:DeprecationWarning
|
||||
|
||||
# Test timeout (requires pytest-timeout)
|
||||
timeout = 300
|
||||
timeout = 1800
|
||||
timeout_method = thread
|
||||
|
||||
# Parallel execution configuration (requires pytest-xdist)
|
||||
# Uncomment to enable parallel test execution
|
||||
# addopts = -n auto
|
||||
|
||||
# Configure test collection
|
||||
collect_ignore = [
|
||||
"setup.py",
|
||||
"conftest.py"
|
||||
]
|
||||
|
||||
# Minimum line length for test output
|
||||
console_output_style = progress
|
||||
|
||||
|
||||
Reference in New Issue
Block a user