Skip to content

Commit 1695e79

Browse files
committed
feat(wokwi): Support scenario
1 parent 759974e commit 1695e79

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/scripts/tests_run.sh

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ function run_test() {
4040

4141
if [ $platform == "wokwi" ]; then
4242
extra_args="--target $target --embedded-services arduino,wokwi --wokwi-timeout=$wokwi_timeout"
43+
if [[ -f "$sketchdir/scenario.yaml" ]]; then
44+
extra_args+=" --wokwi-scenario $sketchdir/scenario.yaml"
45+
fi
4346
else
4447
extra_args="--embedded-services esp,arduino"
4548
fi

tests/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cryptography>=2.1.4
22
--only-binary cryptography
33
pytest-cov
4-
pytest-embedded-serial-esp>=1.3.4
5-
pytest-embedded-arduino>=1.3.4
6-
pytest-embedded-wokwi>=1.3.5
4+
pytest-embedded-serial-esp>=1.10.0
5+
pytest-embedded-arduino>=1.10.0
6+
pytest-embedded-wokwi>=1.10.0

0 commit comments

Comments
 (0)