Skip to content

Commit

Permalink
refactor: Fix pytest - Update diagram.json and wokwi.toml files
Browse files Browse the repository at this point in the history
  • Loading branch information
hayschan committed Jun 3, 2024
1 parent 85e0bbb commit 7f90a28
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 8 deletions.
14 changes: 7 additions & 7 deletions diagram.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": 1,
"author": "Hays Chan, aka Nozomi",
"editor": "wokwi",
"parts": [ { "type": "board-esp32-s3-devkitc-1", "id": "esp", "top": 0, "left": 0, "attrs": {} } ],
"connections": [ [ "esp:TX", "$serialMonitor:RX", "", [] ], [ "esp:RX", "$serialMonitor:TX", "", [] ] ],
"dependencies": {}
}
"version": 1,
"author": "Hays Chan, aka Nozomi",
"editor": "wokwi",
"parts": [ { "type": "board-esp32-devkit-c-v4", "id": "esp", "top": -0.18, "left": 4.57, "attrs": {} } ],
"connections": [ [ "esp:TX", "$serialMonitor:RX", "", [] ], [ "esp:RX", "$serialMonitor:TX", "", [] ] ],
"dependencies": {}
}
45 changes: 45 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,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
File renamed without changes.
2 changes: 1 addition & 1 deletion wokwi.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[wokwi]
version = 1
firmware = "build/flasher_args.json"
elf = "build/test_app.elf"
elf = "build/esp32-ip-to-geolocation.elf"

0 comments on commit 7f90a28

Please sign in to comment.