-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpytest.ini
More file actions
71 lines (62 loc) · 1.31 KB
/
pytest.ini
File metadata and controls
71 lines (62 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# pytest.ini
[pytest]
# Directorio donde buscar tests
testpaths = tests
# Patrón de archivos de test
python_files = test_*.py *_test.py
# Patrón de funciones de test
python_functions = test_*
# Patrón de clases de test
python_classes = Test*
# Modo asyncio
asyncio_mode = auto
# Opciones por defecto
addopts =
# Mostrar resumen de tests
-v
# Mostrar prints
-s
# Mostrar warnings
-W ignore::DeprecationWarning
# Coverage (comentar si no quieres coverage por defecto)
--cov=app
--cov-report=term-missing
--cov-report=html
# Detener en el primer fallo (comentar si quieres ver todos los fallos)
# -x
# Mostrar solo los tests que fallan
# --tb=short
# Marcadores personalizados
markers =
unit: Tests unitarios
integration: Tests de integración
e2e: Tests end-to-end
slow: Tests lentos
# Archivos a ignorar
norecursedirs =
.git
.pytest_cache
__pycache__
venv
env
dist
build
*.egg-info
# Configuración de cobertura
[coverage:run]
source = app
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/venv/*
*/env/*
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
raise AssertionError
raise NotImplementedError
if __name__ == .__main__.:
if TYPE_CHECKING:
@abstractmethod