Skip to content

Commit 3bfab04

Browse files
author
Amanda Butler
authored
Update testing.md
Add updated information with active voice to App config section
1 parent b82d15c commit 3bfab04

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/advanced/testing.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,11 @@ The full build process is:
7676

7777
#### App config
7878

79-
When building an mbed application, the presence of a `mbed_app.json` file allows you to set or override different config settings from libraries and targets. However, because the tests share a common build, this can cause issues when tests have different configurations that affect the OS.
79+
When building an mbed application, the presence of an `mbed_app.json` file allows you to set or override different config settings from libraries and targets. However, because the tests share a common build, this can cause issues when tests have different configurations that affect the OS.
8080

81-
If you need to use app config, this must be set via the `--app-config` option when calling `mbed test`. **If this option is not specified, the build system will ignore all `mbed_app.json` files and use the default config values.**
81+
The build system will look for an `mbed_app.json` file in your shared project files (any directory not inside of a `TESTS` folder). If the system finds it, this configuration file will be used for both the nontest code as well as each test case inside your project's source tree. If there is more than one `mbed_app.json` file in the source tree, the config system will error.
82+
83+
If you need to test with multiple configurations, you can use the `--app-config` option. This will override the search for an `mbed_app.json` file and use the config file you specify for the build.
8284

8385
### Running tests
8486

0 commit comments

Comments
 (0)