example: use pytest-embedded to replace examples/system/console test scripts

This commit is contained in:
Fu Hanxi
2021-11-17 17:09:36 +08:00
parent 3222b5c720
commit ef685456ab
6 changed files with 184 additions and 44 deletions
+17
View File
@@ -0,0 +1,17 @@
[pytest]
# only the files with prefix `pytest_` would be recognized as pytest test scripts.
python_files = pytest_*.py
addopts = --embedded-services esp,idf
markers =
esp32: support esp32 target
esp32c3: support esp32c3 target
generic: tests should be run on generic runners
# log related
log_auto_indent = True
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