Running Python tests automatically

Hi,
I am trying to figure out why some of the Python tests in an extension are not being executed following:
COMP: Update GHA workflow ensuring Slicer is built with NumPy support by jcfr · Pull Request #179 · SlicerDMRI/SlicerDMRI · GitHub

The dashboard does show some Python test being run:
CDash

But others are not being run, e.g.
https://github.com/SlicerDMRI/SlicerDMRI/blob/2ba47ea8a5c03056823b91245a0710bee689ec26/Modules/Loadable/TractographyDisplay/Testing/Python/CMakeLists.txt#L12

On that list, only the first one is run (not without warnings, though):
Test Results

I do see that the first one has some related additional CMake code in the previous link. I have tried to look for posts or documentation that explains how to write the related tests, and necessary CMake code, but have not found any relevant pointer.

Is there any resource I could have a look at to fix this situation? If not, can anybody briefly explain here how Python tests should be written and tests within an extension?

Thanks.