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
General | `$ tns test android [--watch] [--device <Device ID>] [--debug-brk]`
7
+
8
+
Runs the tests in your project on connected Android devices and emulators.
9
+
10
+
### Options
11
+
*`--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and tests are re-run.
12
+
*`--device` - Specifies the serial number or the index of the connected device on which to run the tests. To list all connected devices, grouped by platform, run `$ tns device`
13
+
*`--debug-brk` - Run the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
14
+
15
+
### Attributes
16
+
*`<Device ID>` is the device index or identifier as listed by `$ tns device`
17
+
18
+
<% if(isHtml) { %>
19
+
### Related commands
20
+
Command | Description
21
+
--------|------------
22
+
[test init](test-init.html) | Creates a test project in an existing NativeScript project
General | `$ tns test init [--framework <Framework>]`
7
+
8
+
Adds support for unit testing in an existing project.
9
+
10
+
### Options
11
+
*`--framework <Framework>` - Specify the unit testing framework to install. Available frameworks are <%= formatListOfNames(constants.TESTING_FRAMEWORKS, 'and') %>.
Run tests on all connected devices | `$ tns test ios [--watch] [--debug-brk]`
7
+
Run tests on a selected device | `$ tns test ios --device <Device ID> [--watch] [--debug-brk]`
8
+
Run tests in the iOS Simulator | `$ tns test ios --emulator [--watch] [--debug-brk]`
9
+
10
+
Runs the tests in your project on connected iOS devices or the iOS Simulator.
11
+
12
+
### Options
13
+
*`--watch` - If set, when you save changes to the project, changes are automatically synchronized to the connected device and tests are re-ran.
14
+
*`--device` - Specifies the serial number or the index of the connected device on which you want to run tests. To list all connected devices, grouped by platform, run `$ tns device`. You cannot set `--device` and `--emulator` simultaneously.
15
+
*`--emulator` - Runs tests on the iOS Simulator. You cannot set `--device` and `--emulator` simultaneously.
16
+
*`--debug-brk` - Run the tests under the debugger. The debugger will break just before your tests are executed, so you have a chance to place breakpoints.
17
+
18
+
<% if(isHtml) { %>
19
+
### Related commands
20
+
Command | Description
21
+
--------|------------
22
+
[test init](test-init.html) | Creates a test project in an existing NativeScript project
0 commit comments