generated from BrandonElectronic/ESP-PROJECT-TEMPLATE
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpytest.ini
45 lines (39 loc) · 1.25 KB
/
pytest.ini
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
[pytest]
# only the files with prefix `pytest_` would be recognized as pytest test scripts.
python_files = pytest_*.py
# set traceback to "short" to prevent the overwhelming tracebacks
addopts =
-s -vv
--embedded-services esp,idf
--tb short
--strict-markers
--skip-check-coredump y
--logfile-extension ".txt"
--check-duplicates y
# ignore PytestExperimentalApiWarning for record_xml_attribute
filterwarnings =
ignore::_pytest.warning_types.PytestExperimentalApiWarning
markers =
# target markers
esp32: support esp32 target
esp32s2: support esp32s2 target
esp32s3: support esp32s3 target
esp32c3: support esp32c3 target
esp32c2: support esp32c2 target
esp32c6: support esp32c6 target
esp32h2: support esp32h2 target
linux: support linux target
# env markers
generic: tests should be run on generic runners
# special markers
supported_targets: support all officially announced supported targets (esp32, esp32s2, esp32c3, esp32s3, esp32c2, esp32c6, esp32h2)
# log related
log_cli = True
log_cli_level = INFO
log_cli_format = %(asctime)s %(levelname)s %(message)s
log_cli_date_format = %Y-%m-%d %H:%M:%S
# junit related
junit_family = xunit1
## log all to `system-out` when case fail
junit_logging = stdout
junit_log_passing_tests = False