Skip to content
Snippets Groups Projects
Commit 4f10adb1 authored by Cédric OLIVIER's avatar Cédric OLIVIER
Browse files

Merge branch 'update-ng-test-doc' into 'master'

fix(doc): Update NG_TEST_ARGS documentation

See merge request to-be-continuous/angular!44
parents 2fda0ecb bf65061a
No related branches found
No related tags found
No related merge requests found
# GitLab CI template for Angular # GitLab CI template for Angular
This project implements a GitLab CI/CD template to build, test and analyse your This project implements a GitLab CI/CD template to build, test and analyse your [Angular](https://angular.io/) projects.
[Angular](https://angular.io/) projects.
## Usage ## Usage
...@@ -66,7 +65,7 @@ Those stage are bound to the `build` stage, and uses the following variable: ...@@ -66,7 +65,7 @@ Those stage are bound to the `build` stage, and uses the following variable:
| Name | description | default value | | Name | description | default value |
|-----------------|------------------------------------------------------------|---------------------------------------------------| |-----------------|------------------------------------------------------------|---------------------------------------------------|
| `NG_TEST_ARGS` | Angular [ng test](https://angular.io/cli/test) arguments | `test --code-coverage --reporters progress,junit` | | `NG_TEST_ARGS` | Angular [ng test](https://angular.io/cli/test) arguments | `test --code-coverage --reporters progress,junit --watch=false --no-progress` |
| `NG_BUILD_ARGS` | Angular [ng build](https://angular.io/cli/build) arguments | `build` | | `NG_BUILD_ARGS` | Angular [ng build](https://angular.io/cli/build) arguments | `build` |
The next chapters presents some requirements related to your unit tests (using Karma). The next chapters presents some requirements related to your unit tests (using Karma).
...@@ -251,7 +250,7 @@ Additionally, if using **SonarQube**, you may also want to generate [SonarQube g ...@@ -251,7 +250,7 @@ Additionally, if using **SonarQube**, you may also want to generate [SonarQube g
3. In your `jest.config.js`, add a jestSonar section to configure the name of the jest report. 3. In your `jest.config.js`, add a jestSonar section to configure the name of the jest report.
```js ```js
"devDependencies": { "devDependencies": {
... ...
}, },
"jestSonar": { "jestSonar": {
"reportPath": "reports", "reportPath": "reports",
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
{ {
"name": "NG_TEST_ARGS", "name": "NG_TEST_ARGS",
"description": "Angular [ng test](https://angular.io/cli/test) arguments", "description": "Angular [ng test](https://angular.io/cli/test) arguments",
"default": "test --code-coverage --reporters progress,junit", "default": "test --code-coverage --reporters progress,junit --watch=false --no-progress",
"advanced": true "advanced": true
} }
], ],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment