Skip to content

Hardware In Loop Testing with Python  #51

Description

@MAhmedDev

Python + pytest + pyserial <- SERIAL-> Stm32 Microcontroller

Create a testing framework that is able to send commands to the microcontroller and verify the response is as expected.
Pytest can be used to automate testing and help with regression testing as the project becomes more complex.

E.g
Test 1: test serial OK
Send serial command "test_serial_ok()"
Capture the next response from the system using py serial and save it to a variable
Response from stm32 MCU "SERIAL OK"
Verify if the response matches your expected response.
Pass or Fail the unit test and move on to the next test.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions