Skip to content

Commit 4fa44b8

Browse files
committed
Updating docs for unit testing
1 parent 3b767c9 commit 4fa44b8

22 files changed

+105
-24
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,8 @@ Run `tns help` to view all available commands in the browser. Run `tns help <Com
309309
* `deploy <Platform> [--device <Device ID>]` deploys an already built application on connected device.
310310
* `run <Platform> [--device <Device ID>]` executes `prepare`, `build`, and `deploy`.
311311
* `livesync <Platform>` synchronizes changes from your project to an already deployed application on device.
312+
* `test init` configures your project for unit testing with a selected framework.
313+
* `test <Platform>` runs your unit tests on a connected device or in the native emulator.
312314
* `device` lists connected devices, including any running Android Virtual Devices or Genymotion virtual devices.
313315
* `device log` opens the log stream for the selected device.
314316
* `device run` runs a selected application on a connected device.

docs/man_pages/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Command | Description
3030
[emulate `<Platform>`](project/testing/emulate.html) | Deploys the project in the native emulator for the selected target platform.
3131
[run `<Platform>`](project/testing/run.html) | Runs your project on a connected device or in the native emulator, if configured.
3232
[debug `<Platform>`](project/testing/debug.html) | Debugs your project on a connected physical or virtual device.
33-
[test init](project/testing/test-init.html) | Adds support for unit testing to your project.
33+
[test init](project/testing/test-init.html) | Configures your project for unit testing with a selected framework.
3434
[test `<Platform>`](project/testing/test.html) | Runs the unit tests in your project on a connected physical or virtual device.
3535
[install](project/configuration/install.html) | Installs all platforms and dependencies described in the `package.json` file in the current directory.
3636
[plugin](lib-management/plugin.html) | Lets you manage the plugins for your project.

docs/man_pages/project/testing/build-android.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ Command | Description
4747
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
4848
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
4949
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
50+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
51+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
52+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
5053
<% } %>

docs/man_pages/project/testing/build-ios.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,7 @@ Command | Description
4040
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
4141
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
4242
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
43+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
44+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
45+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
4346
<% } %>

docs/man_pages/project/testing/build.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ Command | Description
3636
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
3737
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
3838
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
39+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
40+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
41+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
3942
<% } %>

docs/man_pages/project/testing/debug-android.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,7 @@ Command | Description
5555
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
5656
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
5757
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
58+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
59+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
60+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
5861
<% } %>

docs/man_pages/project/testing/debug-ios.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ Command | Description
5454
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
5555
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
5656
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
57+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
58+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
59+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
5760
<% } %>

docs/man_pages/project/testing/debug.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,7 @@ Command | Description
3636
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
3737
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
3838
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
39+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
40+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
41+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
3942
<% } %>

docs/man_pages/project/testing/deploy.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,7 @@ Command | Description
5151
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
5252
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
5353
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
54+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
55+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
56+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
5457
<% } %>

docs/man_pages/project/testing/emulate-android.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,7 @@ Command | Description
6363
[run android](run-android.html) | Runs your project on a connected Android device or in a native Android emulator, if configured.
6464
[run ios](run-ios.html) | Runs your project on a connected iOS device or in the iOS Simulator, if configured.
6565
[run](run.html) | Runs your project on a connected device or in the native emulator for the selected platform.
66+
[test init](test-init.html) | Configures your project for unit testing with a selected framework.
67+
[test android](test-android.html) | Runs the tests in your project on Android devices or native emulators.
68+
[test ios](test-ios.html) | Runs the tests in your project on iOS devices or the iOS Simulator.
6669
<% } %>

0 commit comments

Comments
 (0)