1 | # aurelia-testing
|
2 |
|
3 | [![npm Version](https://img.shields.io/npm/v/aurelia-testing.svg)](https://www.npmjs.com/package/aurelia-testing)
|
4 | [![ZenHub](https://raw.githubusercontent.com/ZenHubIO/support/master/zenhub-badge.png)](https://zenhub.io)
|
5 | [![Join the chat at https://gitter.im/aurelia/discuss](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/aurelia/discuss?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
6 | [![CircleCI](https://circleci.com/gh/aurelia/testing.svg?style=shield)](https://circleci.com/gh/aurelia/testing)
|
7 |
|
8 | This library is part of the [Aurelia](http://www.aurelia.io/) platform and contains testing helpers for aurelia app and component developers.
|
9 |
|
10 | > To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.aurelia.io/) and [our email list](http://eepurl.com/ces50j). We also invite you to [follow us on twitter](https://twitter.com/aureliaeffect). If you have questions look around our [Discourse forums](https://discourse.aurelia.io/), chat in our [community on Gitter](https://gitter.im/aurelia/discuss) or use [stack overflow](http://stackoverflow.com/search?q=aurelia). Documentation can be found [in our developer hub](http://aurelia.io/docs/testing). If you would like to have deeper insight into our development process, please install the [ZenHub](https://zenhub.io) Chrome or Firefox Extension and visit any of our repository's boards.
|
11 |
|
12 | ## Platform Support
|
13 |
|
14 | This library can be used in the **browser**.
|
15 |
|
16 | ## Building The Code
|
17 |
|
18 | To build the code, follow these steps.
|
19 |
|
20 | 1. Ensure that [NodeJS](http://nodejs.org/) is installed. This provides the platform on which the build tooling runs.
|
21 | 2. From the project folder, execute the following command:
|
22 |
|
23 | ```shell
|
24 | npm install
|
25 | ```
|
26 | 3. To build the code, you can now run:
|
27 |
|
28 | ```shell
|
29 | npm run build
|
30 | ```
|
31 | 4. You will find the compiled code in the `dist` folder, available in six module formats: AMD, CommonJS and ES2015, ES2017, native modules, and System.
|
32 |
|
33 | 5. See `package.json` scripts section for other tasks related to generating the docs and linting.
|
34 |
|
35 | ## Running The Tests
|
36 |
|
37 | To run the unit tests, first ensure that you have followed the steps above in order to install all dependencies and successfully build the library. Once you have done that, you can run the tests by executing the following command:
|
38 |
|
39 | ```shell
|
40 | npm test
|
41 | ```
|