summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjacqueline <me@jacqueline.id.au>2022-11-08 10:55:42 +1100
committerjacqueline <me@jacqueline.id.au>2022-11-08 10:55:42 +1100
commite219925fac2d9b0b054445ac9c094d51ae30fd17 (patch)
tree676c36f897a5eedcfa69ef9b98ceb5eeedb62b54 /src
parent1958b262ee84960c65ebf1d465c8c7d80e32b58c (diff)
downloadtangara-fw-e219925fac2d9b0b054445ac9c094d51ae30fd17.tar.gz
WIP use catch2 instead of unity
Diffstat (limited to 'src')
-rw-r--r--src/drivers/test/CMakeLists.txt2
-rw-r--r--src/drivers/test/test_example.cpp6
2 files changed, 4 insertions, 4 deletions
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 );
}