Hello. I have Swift package that is mostly built in C++ with a Swift wrapper.
What is the best way to unit test the internal C++ classes? I see that that the swift-lang/swift project itself uses gtest. But I would rather not have to introduce CMake or change the build system as I would like to stick with SwiftPM and keep it as simple as possible.
My current thought it to vendor some header-only C++ unit testing framework. Would this integrate with SwiftPM test targets?
A related question - is there a contact that SwiftPM expects test targets to conform to? I imagine at a minimum the exit code should be non-zero on test failure. Are there other expectations regarding stdout/stderr for example?
Any insight appreciated!