You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: tdd_demo/readme.md
+13-2
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
# Ceedling and Test
2
-
> Ceedling is a tool to create project based on tests. True approach of TDD. To install Ceedlings we need to install ruby. Because Ceedling will be installed by:
2
+
> Ceedling is a tool to create project based on tests. True approach of TDD. To install Ceedlings we need to install `ruby`. Because Ceedling will be installed by:
3
3
4
4
```sh
5
5
gem install ceedling
@@ -9,6 +9,7 @@ gem install ceedling
9
9
10
10
```sh
11
11
ceedling new my_demo
12
+
cd my_demo
12
13
```
13
14
14
15
> With this it craates a folder for our project:
@@ -19,4 +20,14 @@ ceedling new my_demo
19
20
> Now we have an empty project. We are going to add our first module:
20
21
21
22
```sh
22
-
```
23
+
ceedling module:create[printer]
24
+
```
25
+
26
+
> This gives us almost a complete setup ready for test with:
27
+
28
+
- src/printer.c our empty source with header include
29
+
- src/printer.h our header with guards
30
+
- test/test_printer.c test functions for printer module
31
+
- build/ directory with logs, test folders, cmock and unity frameworks. With their meson files for building.
0 commit comments