How to add unit tests for verse code

How can we cover code in our devices with unit-tests? How can we run tests?

1 Like

If I were so inclined, I would probably write a function called UnitTest(). Inside it …

For all functions under test: call the function (covering all cases), take the result. Record the success/failure of the test, in the Log presumably.

Then call UnitTest()

Then check the Log and move on or debug accordingly.

That is how we can.

André