tests: introduce catch2 unit tests infrastructure.
authorHermet Park <hermetpark@gmail.com>
Fri, 4 Jun 2021 07:46:34 +0000 (16:46 +0900)
committerHermet Park <chuneon.park@samsung.com>
Mon, 7 Jun 2021 03:23:11 +0000 (12:23 +0900)
commitc09b01aceb46d46f2e96ff82566c10811f2fa0cc
tree316b81f085a4ef91172e7966ed4e61062b285a2a
parent6669a9ad24b56c0ea24b6483a7bbcb88773e4381
tests: introduce catch2 unit tests infrastructure.

Catch2 is a multi-paradigm test framework for C++.
It is primarily distributed as a single header file,
very easy and simple to adopt this to thorvg project.

This patch introduces catch2 infrastsructure and one prototype as a sample.

You can refer "testInitializer.cpp", how to add unit test!
while ignoring else files such as "catch2.hpp", "testMain.cpp"

Also, enable Unit-tests with meson option when you change any thorvg code.

$meson build -Dtests=true.

launch tvgUnitTest in the build result then verify 100% coverage
before submitting any patches.

Change-Id: Icc09d4402dc38c8a92a1cebb2cb502728c092f36
meson.build
meson_options.txt
test/catch.hpp [new file with mode: 0644]
test/meson.build [new file with mode: 0644]
test/testInitializer.cpp [new file with mode: 0644]
test/testMain.cpp [new file with mode: 0644]