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: docs/tools/testing/unit_testing.md
-18Lines changed: 0 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -1,23 +1,5 @@
1
1
## Unit testing
2
2
3
-
### Introduction
4
-
5
-
Traditional software testing is defined into three main levels: unit testing, integration testing and system testing. These levels are often pictured as a pyramid to indicate the amount of testing for each level.
6
-
7
-
```
8
-
^ Testing level
9
-
|
10
-
| /\
11
-
| / \ System testing
12
-
| /----\
13
-
| / \ Integration testing
14
-
| /--------\
15
-
| / \ Unit testing
16
-
| /------------\
17
-
|
18
-
*-------------------> Amount of tests
19
-
```
20
-
21
3
We perform integration and system testing in an environment where we run the tests with the full Mbed OS. Other testing tools for Mbed OS require specific embedded hardware, which means traditional unit testing is not possible.
22
4
23
5
Unit testing takes place in a build environment where we test each C or C++ class or module in isolation. This means we build test suites into separate test binaries and stub all access outside to remove dependencies on any specific embedded hardware or software combination. This allows us to complete the testing using native compilers on the build machine.
0 commit comments