I want to utilize PYNQ’s pytest package to write test code in Python to test my existing application code on the ZCU102 which is written in C. Am I able to do this?
The reason I am asking is because the documentation stated that pytest is utilized specifically for code written in Jupyter Notebooks(written in Python using the PYNQ package).
Pytest is a generic Python testing framework. We’ve provided a couple of helper functions to make it easier to test Jupyter Notebooks and use it ourselves to automate some of the testing of PYNQ but it’s not PYNQ-specific.
If your C code has Python binding or you can create them using something like CFFI then there’s no reason you couldn’t use Pytest to drive your tests or possibly something even weirder.