Skip to content

Pytest: Initial implementation

Balázs Eszes requested to merge c4deszes/cmake:feature/pytest-discovery into master

This module adds the gtest_discover_tests equivalent of Pytest with test discovery and execution through CTest.

I first uploaded it on Github, but thought it might be useful for others as well.

It was tested locally (Windows 10, CMake 3.20.2, Python 3.8.5, Pytest 6.2.4) but I also created a workflow to matrix test it on Ubuntu with different Pytest versions and it seems to work fine.

Merge request reports