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.
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.