Aleph-One-Marathon / alephone

Aleph One is the open source continuation of Bungie’s Marathon 2 game engine.
https://alephone.lhowon.org/
GNU General Public License v3.0
654 stars 99 forks source link

Add support for tests execution on Mac #459

Open Kolfering opened 11 months ago

Kolfering commented 11 months ago

We have now some replay tests and a setup for UTs in place in /tests but those are only compilable and runnable on Windows.

The way it's done on Windows is instead of having one exe vsproject with all the code like before, there is now 3. Two exe projects; one for Aleph One, and one for the tests executable and a library linked to the other two with all the Aleph One code.

The tests use the catch2 library from vcpkg and since both Windows & Mac use vcpkg, it's already installed on Mac. The tests executation is integrated in CI and are ran on every push, after the build. How to run them can be found at /.github/actions/run-tests