Skip to content

A WORD ABOUT UNIT TESTS

You may have noticed that this distribution does not come with a set of unit tests.

The reason for this is simple. To truly test the Pymata Express library requires that hardware devices be connected to the Arduino, and interaction of Pymata Express with these devices needs to be physically observed.

Therefore, in place of the traditional unit tests, the examples provided with the distribution act as unit tests. They interact with the hardware, and the results of this interaction may be easily observed and verified.

If changes need to be made to the library, the example programs will be re-run to ensure that the hardware and the library behave as expected. If additional features are required in the future, additional examples will be provided to test those new features.

EXAMPLE APPLICATIONS

analog_input

analog_output

concurrent_tasks

digital_input

digital_input_pullup

digital_output

digital_pin_ouput

hc-sr04_distance_sensor

i2c_adxl345_accelerometer

play_tone

retrieve_analog_map

retrieve_capability_report

retrieve_firmware_version

retrieve_pin_state

retrieve_protocol_version

servo

stepper



Copyright (C) 2019-2020 Alan Yorinks. All Rights Reserved.