-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest-basic.ini
More file actions
73 lines (64 loc) · 1.87 KB
/
pytest-basic.ini
File metadata and controls
73 lines (64 loc) · 1.87 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
# RTP Denver - Basic Pytest Configuration (No Odoo Dependency)
# Task 4.1: Basic pytest setup for tests that don't require Odoo
[tool:pytest]
# Minimum pytest version
minversion = 7.4
# Test discovery patterns
python_files = test_*.py *_test.py test*.py
python_classes = Test*
python_functions = test_*
# Test paths
testpaths =
tests/unit
tests/functional
# Basic addons (no odoo-specific plugins for now)
addopts =
--strict-markers
--strict-config
--verbose
--tb=short
--maxfail=10
--durations=10
--cov=custom_modules
--cov-report=term-missing
--cov-report=html:htmlcov
--cov-report=xml
--cov-branch
# Test markers
markers =
unit: Unit tests - test individual components in isolation
integration: Integration tests - test component interactions
functional: Functional tests - test complete user workflows
performance: Performance tests - test system performance and load
slow: Slow tests - tests that take more than 5 seconds
fast: Fast tests - tests that complete in under 1 second
database: Tests that require database access
no_database: Tests that don't require database access
models: Model-specific tests
views: View-related tests
controllers: Controller tests
workflows: Business workflow tests
rtp_customers: RTP Customers module tests
royal_textiles_sales: Royal Textiles Sales module tests
# Logging configuration
log_cli = true
log_cli_level = INFO
log_cli_format = %(asctime)s [%(levelname)8s] %(name)s: %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# Filter warnings
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
# Test collection configuration
collect_ignore =
local-odoo
venv
docker
.git
htmlcov
reports
# Custom collection patterns
collect_ignore_glob =
*/migrations/*
*/static/*
*/__pycache__/*