Skip to content

Commit b985a73

Browse files
committed
chore(README): add instructions to run unit tests
1 parent daa3b3d commit b985a73

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,22 @@ ng build
6262
The build artifacts will be stored in the `dist/` directory.
6363

6464

65+
### Running tests
66+
67+
Before running the tests make sure that the project is built. To build the
68+
project once you can use:
69+
70+
```bash
71+
ng build
72+
```
73+
74+
With the project built in the `dist/` folder you can just run: `karma start`.
75+
Karma will run the tests and keep the browser open waiting to run again.
76+
77+
This will be easier when the command
78+
[ng test](https://github.com/angular/angular-cli/issues/70) is implemented.
79+
80+
6581
### Deploying the app via GitHub Pages
6682

6783
The CLI currently comes bundled with [angular-cli-github-pages addon](https://github.com/IgorMinar/angular-cli-github-pages).
@@ -82,7 +98,7 @@ This project is currently a prototype so there are many known issues. Just to me
8298

8399
- All blueprints/scaffolds are in TypeScript only, in the future blueprints in all dialects officially supported by Angular will be available.
84100
- On Windows you need to run the `build` and `serve` commands with Admin permissions otherwise the performance really sucks.
85-
- [Karma](http://karma-runner.github.io/) and [Protractor](https://angular.github.io/protractor/) integrations are missing.
101+
- [Protractor](https://angular.github.io/protractor/) integration is missing.
86102
- The initial installation as well as `ng new` take too long because of lots of npm dependencies.
87103
- "ember" branding leaks through many error messages and help text.
88104
- Many existing ember addons are not compatible with Angular apps built via angular-cli.

0 commit comments

Comments
 (0)