Skip to content

Commit 650d986

Browse files
authored
Merge pull request NativeScript#1931 from fincha/patch-1
Update testing.md
2 parents e2c276c + 0a79e69 commit 650d986

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

docs/tooling/testing/testing.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ QUnit.test("Hello World Sample Test:", function (assert) {
124124
assert.equal( mainViewModel.createViewModel().message, "42 taps left", "Message, 42 taps left; equal succeeds." ); //Assert that the message is "42 taps left".
125125
});
126126
```
127-
{% angular %}
128-
## TestBed Integration
127+
128+
## Angular TestBed Integration
129129

130130
To use TestBed you have to alter your `karma.conf.js` to:
131131
```
@@ -205,7 +205,6 @@ describe('Renderer E2E', () => {
205205
206206
```
207207

208-
{% endangular%}
209208

210209
## Run Your Tests
211210

@@ -248,6 +247,12 @@ To execute your test suite in the iOS Simulator, run the following command.
248247
tns test ios --emulator
249248
```
250249

250+
To execute your test suite in CI make sure to add `--justlaunch`. This parameter will exit the simulator.
251+
252+
```Shell
253+
tns test ios --emulator --justlaunch
254+
```
255+
251256
Each execution of `$ tns test` consists of the following steps, performed automatically.
252257

253258
1. The CLI starts a Karma server on the development machine.
@@ -282,3 +287,4 @@ When you modify `karma.conf.js`, make sure that your changes meet the specificat
282287
## Continuous Integration
283288

284289
To integrate the NativeScript unit test runner into a continuous integration process, you need to configure a Karma reporter, for example, the [JUnit reporter](https://github.com/karma-runner/karma-junit-reporter).
290+

0 commit comments

Comments
 (0)