forked from DRYTRIX/TimeTracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
74 lines (63 loc) Β· 1.96 KB
/
Copy pathpytest.ini
File metadata and controls
74 lines (63 loc) Β· 1.96 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
72
73
[pytest]
# Pytest configuration for TimeTracker
# Test discovery patterns
python_files = test_*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths = tests
# Output options
addopts =
# Verbosity and output
-v
--tb=short
--strict-markers
--color=yes
# Warnings
-W ignore::DeprecationWarning
-W ignore::PendingDeprecationWarning
# Performance optimizations
--durations=20
# Show slowest tests for optimization
# Note: Parallel execution (-n auto) should be added via command line or CI
# This allows flexibility: use -n auto for speed, omit for debugging
# Note: Coverage fail-under should only be used when running ALL tests
# Do NOT use --cov-fail-under when running specific test markers (e.g., -m routes)
# Test markers for different test levels
markers =
smoke: Quick smoke tests (fastest, runs on every commit)
unit: Unit tests (fast, isolated tests)
integration: Integration tests (medium speed, tests component interaction)
api: API endpoint tests
database: Database-related tests
models: Model tests
routes: Route/endpoint tests
utils: Utility/helper function tests
security: Security-related tests
invoices: Invoice-related tests
admin: Admin panel and settings tests
templates: Template and template filter tests
performance: Performance and load tests
slow: Slow running tests
requires_db: Tests that require database connection
requires_network: Tests that require network access
skip_ci: Tests to skip in CI environment
error_handling: Error handling and exception tests
onboarding: Onboarding and user setup tests
# Coverage configuration
[coverage:run]
source = app
omit =
*/tests/*
*/test_*.py
*/__pycache__/*
*/venv/*
*/env/*
app/utils/pdf_generator.py
app/utils/pdf_generator_fallback.py
[coverage:report]
precision = 2
show_missing = True
skip_covered = False
[coverage:html]
directory = htmlcov