Added unit testing with Catch2 framework

This commit is contained in:
2025-12-31 13:54:04 +01:00
parent abf9f1fa31
commit 7f98a33d7e
3 changed files with 23 additions and 10 deletions

View File

@@ -12,5 +12,14 @@ main.o: main.cpp config.hpp
config.o: config.cpp config.hpp
$(CXX) $(CXXFLAGS) -c config.cpp
tests: tests.o config.o
g++ -std=c++17 -Wall tests.o config.o -o tests -lCatch2Main -lCatch2
tests.o: tests.cpp config.hpp
$(CXX) $(CXXFLAGS) -c tests.cpp
check: tests
./tests
clean:
rm -f *.o blog
rm -f *.o blog tests