Skip to content

Add local testing for C++ with Catch 2 and GoogleTest#224

Merged
bast merged 2 commits intocoderefinery:mainfrom
jpthiele:local-cpp-gtest
Mar 1, 2025
Merged

Add local testing for C++ with Catch 2 and GoogleTest#224
bast merged 2 commits intocoderefinery:mainfrom
jpthiele:local-cpp-gtest

Conversation

@jpthiele
Copy link
Contributor

As promised quite a while ago (#216) this is a first step and adds examples for local testing of C++ with GoogleTest.

For the test design I will see if nested group tabs will work so we can hide the decision between Catch2 and GoogleTest within a single C++ tab. I think this would be a bit neater.

@jpthiele
Copy link
Contributor Author

@bast any thoughts on the nested tabs?

On top of the previous commit adding GoogleTest,
this adds an additional nested `tabs` environment
so both Catch2 and GoogleTest are listed within the top level C++ tab.
@jpthiele jpthiele changed the title Add local testing for C++ with GoogleTest Add local testing for C++ with Catch 2 and GoogleTest Mar 1, 2025
@jpthiele
Copy link
Contributor Author

jpthiele commented Mar 1, 2025

Okay, nested tabs work quite nicely and with the right regex search & replace it's easy to add the two needed backticks in front of every tab keyword.
Since locally.md was getting very lengthy and hard to navigate, I moved all the verbose C++/CMake/CTest output to separate files.
For the test design I will check the Catch2 steps and also do nested groups, but that will certainly be in a separate PR.

@bast
Copy link
Member

bast commented Mar 1, 2025

Thanks so much! This is great.

@bast bast merged commit be8c8e6 into coderefinery:main Mar 1, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants