diff options
| author | jacqueline <me@jacqueline.id.au> | 2022-11-07 16:38:58 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2022-11-07 16:38:58 +1100 |
| commit | 6584060296042d8af440b21024ee7996e5034ec1 (patch) | |
| tree | c4bd79361894a669a1f2f2778f5dff01416f779a /src | |
| parent | c29c218b85a4fe7cff037ead66ef45966c1c6542 (diff) | |
| download | tangara-fw-6584060296042d8af440b21024ee7996e5034ec1.tar.gz | |
Add a unit test app + example tests
Diffstat (limited to 'src')
| -rw-r--r-- | src/drivers/test/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/drivers/test/test_example.cpp | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/drivers/test/CMakeLists.txt b/src/drivers/test/CMakeLists.txt new file mode 100644 index 00000000..52e981fc --- /dev/null +++ b/src/drivers/test/CMakeLists.txt @@ -0,0 +1 @@ +idf_component_register(SRC_DIRS "." INCLUDE_DIRS "." REQUIRES cmock drivers) diff --git a/src/drivers/test/test_example.cpp b/src/drivers/test/test_example.cpp new file mode 100644 index 00000000..2a43341a --- /dev/null +++ b/src/drivers/test/test_example.cpp @@ -0,0 +1,9 @@ +#include "unity.h" + +TEST_CASE("Example test case", "[cooltag]") { + TEST_ASSERT_EQUAL(0, 0); +} + +TEST_CASE("test that doesn't run", "[cooltag][ignore]") { + TEST_ASSERT_EQUAL(0, 1); +} |
