Questions tagged [catch2]

Catch is a unit testing framework for C++

Catch2 offers a BDD syntax, fixtures, Matchers and dynamic data-generation, and a simplified syntax using overloaded assertions. Catch2 is designed for simplicity – it is released as a single include file and allows the use of natural C++ expressions inside assertions.

Catch2 is hosted on GitHub, available at catch-lib.net, and is openly discussed in a Google group.

153 questions
0
votes
0 answers

CMake - "Undefined symbols for architecture x86_64" using glad/GLFW/Catch2

So, I have a project with CMakeLists, the tree like the following: proj dir: --include window.h scene.h etc. --src window.cpp scene.cpp main.cpp etc. --external --glad --SOIL …
adziri
  • 291
  • 3
  • 15
-2
votes
1 answer

What negative test cases are commonly used for compiler scanners/parsers?

I am working on a compiler for a language presented in a class. Against my better judgement, I got ahead of myself and never wrote tests for any compiler tests. My professor wants to see tests. The language is C-like. I am using Catch2 and CTest to…
Oliver
  • 1,465
  • 4
  • 17
-6
votes
1 answer

How do I make catch2 not print its annoying header?

I'm running some unit tests built with catch2. Its output begins with: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ test_suite is a Catch v2.13.6 host application. Run with -? for options well, I don't want to…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
1 2 3
10
11