Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit eb68701

Browse filesBrowse files
committed
minium reproducible example
1 parent 9aeb22f commit eb68701
Copy full SHA for eb68701

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree

97 files changed

+36
-17238
lines changed

‎.github/workflows/check.yaml

Copy file name to clipboardExpand all lines: .github/workflows/check.yaml
-47Lines changed: 0 additions & 47 deletions
This file was deleted.

‎.gitignore

Copy file name to clipboard
+1-19Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1 @@
1-
.pioenvs
2-
.piolibdeps
3-
/external/unity/*-repo/
4-
/external/fakeit/*-repo/
5-
/external/cpputest/*-repo/
6-
/build/
7-
/.cproject
8-
/.project
9-
**/CMakeFiles/*
10-
**/CMakeCache.txt
11-
**/*.cmake
12-
**/Makefile
13-
!/Makefile
14-
/Testing/*
15-
.pio/*
16-
.vscode/*
17-
/test/test_main.cpp
18-
output.txt
19-
error.txt
1+
build/*

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
-65Lines changed: 0 additions & 65 deletions
This file was deleted.

‎AllTests

Copy file name to clipboard
405 KB
Binary file not shown.
File renamed without changes.

‎CMakeLists.txt

Copy file name to clipboard
+29-11Lines changed: 29 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,36 @@
1-
cmake_minimum_required(VERSION 3.2.2)
2-
project(ArduinoFake VERSION 0.1)
1+
cmake_minimum_required(VERSION 3.5)
2+
project(all_tests VERSION 0.1)
33

44
set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_CXX_STANDARD_REQUIRED ON)
66

7-
LIST(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}/cmake)
7+
# CppUTest
8+
include(FetchContent)
9+
FetchContent_Declare(
10+
CppUTest
11+
GIT_REPOSITORY https://github.com/cpputest/cpputest.git
12+
GIT_TAG master # or use release tag, eg. v4.0
13+
)
14+
# Set this to ON if you want to have the CppUTests in your project as well.
15+
set(TESTS OFF CACHE BOOL "Switch off CppUTest Test build")
16+
FetchContent_MakeAvailable(CppUTest)
817

9-
# Include external libs
10-
add_subdirectory(external/fakeit)
11-
add_subdirectory(external/unity)
12-
add_subdirectory(external/cpputest)
1318

14-
# Targets that we develop here
15-
enable_testing()
19+
# ArduinoFake
20+
FetchContent_Declare(
21+
ArduinoFake
22+
GIT_REPOSITORY https://github.com/FabioBatSilva/ArduinoFake.git
23+
GIT_TAG master # or use release tag, eg. v4.0
24+
)
25+
FetchContent_MakeAvailable(ArduinoFake)
1626

17-
add_subdirectory(src)
18-
add_subdirectory(test)
27+
add_executable(first_test AllTests.cpp MyFirstTest.cpp)
28+
29+
target_link_libraries(first_test PRIVATE
30+
CppUTest::CppUTest
31+
CppUTest::CppUTestExt
32+
ArduinoFake)
33+
34+
target_include_directories(first_test PUBLIC
35+
"build/_deps/arduinofake-src/src"
36+
)

‎CONTRIBUTING.md

Copy file name to clipboardExpand all lines: CONTRIBUTING.md
-110Lines changed: 0 additions & 110 deletions
This file was deleted.

‎LICENSE

Copy file name to clipboardExpand all lines: LICENSE
-21Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.