pytest-embedded-arduino
- class pytest_embedded_arduino.app.ArduinoApp(**kwargs)
Bases:
AppArduino App class
- flash_files
(address, filepath)pairs parsed fromflash_args. Each filepath is absolute.
- binary_file
Application binary file path (
.ino.merged.binif present, otherwise.ino.bin).- Type:
- class pytest_embedded_arduino.serial.ArduinoSerial(app: ArduinoApp, target: str | None = None, fast_flash: bool = True, **kwargs)
Bases:
EspSerialArduino serial Dut class
Auto flash the app while starting test.
- SUGGEST_FLASH_BAUDRATE = 921600
- erase_flash(force: bool = False) None
Erase the complete flash and invalidate all fast-flash reference binaries.
- flash() None
Flash individual binary files to the board.
Uses esptool’s
--diff-withfor fast reflashing when reference binaries from the previous successful flash are available, writing only changed 4 KB sectors. References are saved after each successful flash and invalidated byerase_flash().Unlike the merged-binary approach, individual binaries do not overlap with writable flash regions (NVS, OTA data, etc.), so the post-flash MD5 verification succeeds and
--diff-withworks correctly.