Open crjssy opened 2 weeks ago
Hello, thanks for the detailed report!
Does the same firmware work differently on Wokwi for VS Code? Or do you also get the same result there?
The same firmware work on Wokwi for VS Code like this
invalid header: 0x72656461
The same firmware work on Wokwi for VS Code like this
invalid header: 0x72656461
Thank you for your reply ,I build and open simulator it displays an error like this ⬆️
And I try to add timeout in pytest the v5.1 can pass the test, but it's only an occasional occurrence.
# SPDX-FileCopyrightText: 2022-2024 Hays Chan
# SPDX-License-Identifier: MIT
'''
Steps to run these cases:
- Build
- . ${IDF_PATH}/export.sh
- pip install idf_build_apps
- python tools/build_apps.py components/button/test_apps -t esp32
- Test
- pip install -r tools/requirements/requirement.pytest.txt
- pytest components/button/test_apps --target esp32
'''
import pytest
from pytest_embedded import Dut
@pytest.mark.supported_targets("esp32")
def test_esp32_ip_to_geolocation(dut: Dut):
# Start the test
dut.expect_exact("wifi_init_sta finished.", timeout=60)
dut.expect("connected to ap SSID:Wokwi-GUEST", timeout=60)
dut.expect("HTTP_EVENT_ON_FINISH", timeout=60)
# Check for the expected logs from the JSON response
expected_keys = [
"status:",
"country:",
"countryCode:",
"region:",
"regionName:",
"city:",
"zip:",
"lat:",
"lon:",
"timezone",
"isp",
"org",
"as",
"query"
]
# Check each expected log entry for presence only, not specific content
for key in expected_keys:
dut.expect(key, timeout=60)
https://github.com/crjssy/esp32-ip-to-geolocation/actions/runs/9559851466
Hi! @urish
I'm trying to use wokwi cli now to use http get ip-location, but the information I get is incomplete, can you check it? The code as follows:
My yml file is as follows:
My pytest as follows:
It doesn't output the full message I want,you can check out my action
https://github.com/crjssy/esp32-ip-to-geolocation/actions/runs/9557963622
Any help on this would be really appreciated! :raising_hand: