I have started a simple C++ project that uses Bazel as build system and would like to add Catch2 to it, as test framework.
This is what my project looks like so far:
WORKSPACE -> empty file
src/
Money.hpp
Money.cpp
BUILD
where BUILD is just
cc_library(
name = "Money",
srcs = ["Money.cpp"],
hdrs = ["Money.hpp"]
)
I would like to be able to create tests for each cc_library, in this case for Money. I tried setting it up but got confused with Catch2 main. Any advice on how to do this best is appreciated!
Aucun commentaire:
Enregistrer un commentaire