Replies: 2 comments 8 replies
-
I prefer not to use or suggest using Google products as they are always a liability. I have a fork of utest.h, which also supports handling shared libraries on Windows. I have not seen any other library implement something like this, so if anything, the library in use for a cmake-init template would be that fork. There is a |
Beta Was this translation helpful? Give feedback.
-
Hey, it wasn't all that recent of a change, but with the addition of package manager integration, Catch2 is now provided by default for testing when a package manager is chosen. That ought to resolve this topic. |
Beta Was this translation helpful? Give feedback.
-
I think it would be nice if the project would allow one to choose between how it is now (without any framework) or use directly some framework.
I would suggest supporting Catch2 and GTest. Optionally also GMock and trompeloeil for mocking.
These have also special functions to use them in cmake, which is one of the reasons I would like them to see in such a template.
Another consideration would be the folder structure for tests. I've never seen a "source" or "src" folder in tests. What I often do is to add folders for the test types. Common is "unit_tests" and "integration_tests", but I guess that is far from a standard as well.
What would be considerable is an
include
folder I could imagine. I often use this for some "resuable" stuff like mock definitions. Again not sure how much standard that is.Beta Was this translation helpful? Give feedback.
All reactions