forked from Scarvy/chatgpt-to-sqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpytest.ini
More file actions
48 lines (41 loc) · 1.12 KB
/
pytest.ini
File metadata and controls
48 lines (41 loc) · 1.12 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
[pytest-html]
title = Test Report
show_summary = True
show_results_table = True
show_test_summary = True
show_logs = True
[pytest]
# Set the test discovery directory
testpaths = chatgpt_to_sqlite/tests
# Enable assertion rewriting for better debugging
addopts =
--strict-markers
--disable-warnings
--tb=short
--maxfail=300
--durations=5
--capture=no
--log-level=INFO
--log-format="%(asctime)s - %(levelname)s - %(message)s"
--log-date-format="%Y-%m-%d %H:%M:%S"
# Markers for test categorization
markers =
slow: Tests that take a long time to run
integration: Integration tests requiring services
unit: Fast, self-contained tests
regression: Tests for past bugs
# Filter warnings (modify as needed)
filterwarnings =
ignore::DeprecationWarning
ignore::PendingDeprecationWarning
ignore::ResourceWarning
# Set log CLI output
log_cli = true
log_cli_level = INFO
# Configure pytest cache
cache_dir = .pytest_cache
# Enable capturing logs
log_file = pytest.log
log_file_level = INFO
log_file_format = %(asctime)s [%(levelname)s] %(message)s
log_file_date_format = %Y-%m-%d %H:%M:%S