Skip to content

Commit 95cb616

Browse files
committed
updated readme
1 parent bce3f30 commit 95cb616

File tree

1 file changed

+15
-22
lines changed

1 file changed

+15
-22
lines changed

angular-pact/README.md

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,20 @@
1-
# AngularPact
1+
# Angular Pact example
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.4.4.
3+
This example project shows how to setup an Angular application to use [Pact](http://pact.io)
4+
in order to create Pact files from a consumer test and validate the
5+
a consumer against the Pact.
46

5-
## Development server
7+
## Key Files
68

7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
9+
* [`user.service.ts`](src/app/user.service.ts): Angular service that calls a REST
10+
backend to manage users
11+
* [`user.service.pact.spec.ts`](src/app/user.service.pact.spec.ts): Jasmine-based
12+
consumer test of `user.service.ts`
13+
* [`karma.conf.js`](karma.conf.js): configuration of the Karma test runner including
14+
configuration to setup Pact
815

9-
## Code scaffolding
16+
## How to Run
1017

11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12-
13-
## Build
14-
15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.
16-
17-
## Running unit tests
18-
19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20-
21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24-
25-
## Further help
26-
27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
18+
Run `npm install` to load the needed javascript libraries and then `npm run test` to
19+
run the tests. After the tests have successfully run the created pact file will be
20+
created in the folder `pacts`.

0 commit comments

Comments
 (0)