Skip to content

Commit 469c78c

Browse files
author
Amanda Butler
authored
Move content from unit_testing.md
Move testing overview diagram and content up a level to the testing overview page.
1 parent 9e87339 commit 469c78c

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

docs/tools/testing/unit_testing.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,5 @@
11
## Unit testing
22

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-
213
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.
224

235
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

Comments
 (0)