init test framework
This commit is contained in:
+6
-6
@@ -8,7 +8,7 @@
|
|||||||
; Please visit documentation for the other options and examples
|
; Please visit documentation for the other options and examples
|
||||||
; https://docs.platformio.org/page/projectconf.html
|
; https://docs.platformio.org/page/projectconf.html
|
||||||
|
|
||||||
[env]
|
[env:embedded]
|
||||||
platform = espressif32
|
platform = espressif32
|
||||||
board = esp32doit-devkit-v1
|
board = esp32doit-devkit-v1
|
||||||
board_build.partitions = no_ota.csv
|
board_build.partitions = no_ota.csv
|
||||||
@@ -29,14 +29,14 @@ upload_port = COM3
|
|||||||
extra_scripts =
|
extra_scripts =
|
||||||
pre:autoVersionIncrement/version_increment_pre.py
|
pre:autoVersionIncrement/version_increment_pre.py
|
||||||
post:autoVersionIncrement/version_increment_post.py
|
post:autoVersionIncrement/version_increment_post.py
|
||||||
|
test_ignore = test_desktop
|
||||||
[env:release]
|
|
||||||
build_type = release
|
|
||||||
|
|
||||||
[env:debug]
|
|
||||||
build_type = debug
|
build_type = debug
|
||||||
monitor_filters = esp32_exception_decoder
|
monitor_filters = esp32_exception_decoder
|
||||||
check_tool = clangtidy
|
check_tool = clangtidy
|
||||||
|
|
||||||
|
[env:native]
|
||||||
|
platform = native
|
||||||
|
test_ignore = test_embedded
|
||||||
|
|
||||||
[platformio]
|
[platformio]
|
||||||
description = A Rover who should be drive a route by gps.
|
description = A Rover who should be drive a route by gps.
|
||||||
|
|||||||
@@ -0,0 +1,22 @@
|
|||||||
|
#include "courseCalculation.hpp"
|
||||||
|
#include <unity.h>
|
||||||
|
|
||||||
|
void setUp() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void tearDown() {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void uselessTest() {
|
||||||
|
TEST_ASSERT_EQUAL(12, 12);
|
||||||
|
}
|
||||||
|
|
||||||
|
int main(int argc, char **argv) {
|
||||||
|
UNITY_BEGIN();
|
||||||
|
RUN_TEST(testCourseCalculation);
|
||||||
|
UNITY_END();
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
#include "route.h"
|
||||||
|
#include <unity.h>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
|
void testCourseCalculation(void) {
|
||||||
|
Point point;
|
||||||
|
std::cout << "Hello world from Test" << std::endl;
|
||||||
|
TEST_ASSERT_EQUAL_INT(20, 20);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user