From e219925fac2d9b0b054445ac9c094d51ae30fd17 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Tue, 8 Nov 2022 10:55:42 +1100 Subject: WIP use catch2 instead of unity --- src/drivers/test/CMakeLists.txt | 2 +- src/drivers/test/test_example.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/drivers') diff --git a/src/drivers/test/CMakeLists.txt b/src/drivers/test/CMakeLists.txt index 52e981fc..f6690c4d 100644 --- a/src/drivers/test/CMakeLists.txt +++ b/src/drivers/test/CMakeLists.txt @@ -1 +1 @@ -idf_component_register(SRC_DIRS "." INCLUDE_DIRS "." REQUIRES cmock drivers) +idf_component_register(SRC_DIRS "." INCLUDE_DIRS "." REQUIRES catch2 cmock drivers) diff --git a/src/drivers/test/test_example.cpp b/src/drivers/test/test_example.cpp index 2a43341a..34de41ed 100644 --- a/src/drivers/test/test_example.cpp +++ b/src/drivers/test/test_example.cpp @@ -1,9 +1,9 @@ -#include "unity.h" +#include "catch2/catch.hpp" TEST_CASE("Example test case", "[cooltag]") { - TEST_ASSERT_EQUAL(0, 0); + REQUIRE ( 1 == 1 ); } TEST_CASE("test that doesn't run", "[cooltag][ignore]") { - TEST_ASSERT_EQUAL(0, 1); + REQUIRE ( 0 == 1 ); } -- cgit v1.2.3