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/offline/cli-test-debug.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
Use the `mbed test` command to compile and run tests.
4
4
5
-
There are two testing frameworks: Greentea and Icetea. Greentea provides tests designed for driver porting and target verification. Icetea provides and manages tests for multiple devices at the same time. Devices being tested are referred to as devices under test (DUTs). For example, you can test the network setup for a server and multiple clients, simultaneously controlling them from the test environment.
5
+
There are two testing frameworks: Greentea and Icetea. Greentea provides tests designed for driver porting and target verification. Icetea provides and manages tests for multiple devices at the same time. For example, you can test the network setup for a server and multiple clients, simultaneously controlling them from the test environment.
6
6
7
7
The arguments to `test` are:
8
8
@@ -12,16 +12,16 @@ The arguments to `test` are:
12
12
-`--run-list`: to list all the tests that can be run, after they have been built.
13
13
-`--compile`: to only compile the tests.
14
14
-`--run`: to only run the tests.
15
-
-`-n <TESTS_BY_NAME>`: to limit the tests built or run to a comma separated list, for example, test1, test2, test3.
15
+
-`-n <TESTS_BY_NAME>`: to limit the tests built or run to a comma separated list, for example, `test1, test2, test3`.
16
16
-`--source <SOURCE>`: to select the source directory. The default is `.` for the the current directory. You can specify multiple source locations, even outside the program tree.
17
17
-`--build <BUILD>`: to select the build directory. The default is `BUILD/` inside your program.
18
18
-`--profile <PATH_TO_BUILD_PROFILE>`: to select a path to a build profile configuration file, for example, `mbed-os/tools/profiles/debug.json`.
19
19
-`-c or --clean`: to clean the build directory before compiling.
20
20
-`--test-spec <TEST_SPEC>`: to set the path for the test specification file used when building and running tests. The default path is the build directory.
21
21
-`--build-data <BUILD_DATA>`: dumps build_data to this file.
22
-
-`--app-config <APP_CONFIG>`: the path of an app configuration file. The default is to look for 'mbed_app.json'.
23
-
-`--test-config <TEST_CONFIG>`: the path or mbed OS keyword of a test configuration file, for example, ethernet, odin_wifi, or path/to/config.json.
24
-
-`--greentea`: to run Greentea tests. As a default, it only runs greentea tests.
22
+
-`--app-config <APP_CONFIG>`: the path of an app configuration file. The default is to look for `mbed_app.json`.
23
+
-`--test-config <TEST_CONFIG>`: the path or Mbed OS keyword of a test configuration file, for example, `ethernet`, `odin_wifi` or `path/to/config.json`.
24
+
-`--greentea`: to run Greentea tests. As a default, it only runs Greentea tests.
25
25
-`--icetea`: to run Icetea tests. If used without the `--greentea` flag, then it only runs Icetea tests.
26
26
-`-v` or `--verbose`: for verbose diagnostic output.
27
27
-`-vv` or `--very_verbose`: for very verbose diagnostic output.
@@ -157,7 +157,7 @@ You can specify that the tests only **run** by using the `--run` option:
157
157
$ mbed test -m K64F -t GCC_ARM --run
158
158
```
159
159
160
-
If you don't specify any of these, `mbed test` first compilea all available tests and then runs them.
160
+
If you don't specify any of these, `mbed test` first compiles all available tests and then runs them.
161
161
162
162
### Limiting the test scope
163
163
@@ -208,7 +208,7 @@ mbed-os-program
208
208
209
209
As shown above, tests exist inside `TESTS\testgroup\testcase\` directories. Please note that `TESTS` is a special upper-case directory that is excluded from module sources while compiling.
210
210
211
-
<spanclass="notes">**Note:**`mbed test` does not work in applications that contain a `main` function that is outside of the`TESTS` directory.</span>
211
+
<spanclass="notes">**Note:**`mbed test` does not work in applications that contain a `main` function that is outside of a`TESTS` directory.</span>
0 commit comments