Skip to content

Commit d02cd70

Browse files
authored
Merge pull request #8067 from bridadan/icetea_test_docs
Spelling fixes and general readability improvements for TEST_APPS documentation
2 parents 492c400 + f79a066 commit d02cd70

File tree

1 file changed

+37
-27
lines changed

1 file changed

+37
-27
lines changed

TEST_APPS/readme.md

Lines changed: 37 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,66 @@
22

33
### Structure
44

5-
mbed-os has a folder called TEST_APPS that contains everything related to Icetea testing.
6-
There are currently 3 folders:
5+
Mbed OS has a folder called `TEST_APPS` that contains everything related to Icetea testing.
76

8-
- device - contains all the different test applications you can flash to your board
9-
- icetea-plugins - contains plugins that are being used by some of the testcases, needed for the test execution
10-
- testcases - contains Icetea testcases written in Python
7+
There are currently three folders:
118

12-
The testcases depends on test applications
9+
- `device` - contains all the different test applications you can flash to your board.
10+
- `icetea_plugins` - contains plugins that are being used by some of the testcases, needed for the test execution.
11+
- `testcases` - contains Icetea testcases written in Python.
12+
13+
The testcases depend on test applications.
1314

1415
### Preparing your work environment
1516

16-
#### Prerequisities
17+
#### Prerequisites
1718

18-
You need Icetea and mbed-cli that supports Icetea, installed.
19+
You need Icetea and version 1.8.0 or higher of Mbed CLI installed.
1920

2021
#### Selecting the network interface to use
2122

22-
Depending on a device, there might be a default network interface type defined in the mbed-os/targets/targets.json, which is used to locate a test-config file by default.
23-
If there is not, or you want to use a different interface than the default, you need to provide a relevant test-config -file to the mbed test with --test-config option.
24-
The test-config file contains the necessary information for the test application, there are some test-config files located under mbed-os/tools/test_configs.
25-
Devices which have their network drivers residing inside mbed-os can use generic test_configs like HeapBlockDeviceAndEthernetInterface.json and HeapBlockDeviceAndWifiInterface.json. Otherwise you need to use a device specific test-config.
23+
Depending on the device, there might be a default network interface type defined in `mbed-os/targets/targets.json`, which you can use to locate a default test-config file.
24+
25+
If the default network interface type is not defined or you want to use a different interface than the default, you need to provide a test-config file to the mbed test with `--test-config` option.
26+
27+
The test-config file contains the necessary information for the test application. There are some test-config files located under `mbed-os/tools/test_configs`.
28+
29+
Devices that have their network drivers residing inside `mbed-os` can use generic `test_configs`, such as `HeapBlockDeviceAndEthernetInterface.json` and `HeapBlockDeviceAndWifiInterface.json`. Otherwise, you need to use a device-specific test-config.
2630

2731
### Running the tests
2832

29-
Now that the interface has been selected you can run the icetea tests from the mbed-os root on your command line by
33+
Now that you have selected the interface, you can run the Icetea tests from the `mbed-os` root on your command-line by running the following command:
34+
35+
`mbed test -m <target> -t <toolchain> --icetea`
3036

31-
`>mbed test -m <target> -t <toolchain> --icetea`
37+
This command compiles the OS, compiles the test applications, creates a test suite and then starts running the tests.
3238

33-
This command will compile the mbed-os, then compiles the test applications, creates a test suite and then starts running the tests.
39+
If you only want to run some specific tests, you can use the `-n` option. You can choose multiple tests by separating them with a comma (`,`):
3440

35-
If you want only to run some specific tests, you can use the -n -option. You can list multiple tests by separating them by comma (,).
41+
`mbed test -m <target> -t <toolchain> --icetea -n test1,test2`
3642

37-
`>mbed test -m <target> -t <toolchain> --icetea -n test1,test2`
43+
#### Running the tests with a specific test-config
3844

39-
#### Running the tests with specifig test-config
45+
Some devices may offer multiple network interfaces to operate with. For example, `UBLOX_EVK_ODIN_W2` offers ethernet and Wi-Fi capabilities.
4046

41-
Some devices may offer multiple network interfaces to operate with. For example, UBLOX_EVK_ODIN_W2 offers ethernet and Wi-Fi capabilities.
4247
The tests can be run for either one of those using already existing test-config -files.
4348

44-
To run the tests with Wi-Fi interface:
45-
`>mbed test -m UBLOX_EVK_ODIN_W2 -t <toolchain> --icetea --test-config tools/test_configs/HeapBlockDeviceAndWifiInterface.json`
49+
To run the tests with the Wi-Fi interface:
4650

47-
To run the tests with ethernet interface:
48-
`>mbed test -m UBLOX_EVK_ODIN_W2 -t <toolchain> --icetea --test-config tools/test_configs/HeapBlockDeviceAndEthernetInterface.json`
51+
`mbed test -m UBLOX_EVK_ODIN_W2 -t <toolchain> --icetea --test-config tools/test_configs/HeapBlockDeviceAndWifiInterface.json`
52+
53+
To run the tests with the ethernet interface:
54+
55+
`mbed test -m UBLOX_EVK_ODIN_W2 -t <toolchain> --icetea --test-config tools/test_configs/HeapBlockDeviceAndEthernetInterface.json`
4956

5057
#### Providing Wi-Fi access point information
5158

52-
If you are using Wi-Fi interface for running the tests, you need to provide also information about the used access point.
59+
If you are using the Wi-Fi interface for running the tests, you need to also provide information about the used access point.
60+
5361
The information can be provided in the used test-config file.
5462

5563
Example of access point information:
64+
5665
```
5766
"target_overrides": {
5867
"*": {
@@ -66,7 +75,7 @@ Example of access point information:
6675

6776
### Test results
6877

69-
Icetea prints the results from the test run to the command line, and the final result looks similar to this.
78+
Icetea prints the results from the test run to the command-line, and the final result looks similar to this:
7079

7180
```
7281
+--------------------------------+---------+-------------+-------------+-----------+----------+
@@ -89,5 +98,6 @@ Icetea prints the results from the test run to the command line, and the final r
8998
+---------------+----------------+
9099
```
91100

92-
The results from the tests can also be found in the mbed-os/log folder.
93-
You probably want to add the log folder to your .mbedignore file to prevent issues with build commands becoming too long over the time.
101+
You can also find the results from the tests in the `mbed-os/log` folder.
102+
103+
You probably want to add the log folder to your `.mbedignore` file to prevent issues with build commands becoming too long over the time.

0 commit comments

Comments
 (0)