Is there a way to include test/verification code for a library?

I’m working on getting the Monocypher working correctly inside PIO.

Since this is a encryption library, it would be a good idea if the user can run a set of tests to see if the library is running correctly on their platform. (the developers of Monocypher have provided test code specifically for this purpose)

I’ve read documentation of unit testing for pio projects, but I’ve not seen anything in the library.json description that hints at testing. What is the approach here? Should this be marked as examples? Or should I make a second library (Monocypher-test), that depends on this one but only contains the tests?

1 Like

Have you tried Redirecting... ?