An open API service indexing awesome lists of open source software.

https://github.com/drborges/tw-na-hod

TWHOD - AngularJS Dark Magic: Directives vs. Unit Testing
https://github.com/drborges/tw-na-hod

Last synced: 8 months ago
JSON representation

TWHOD - AngularJS Dark Magic: Directives vs. Unit Testing

Awesome Lists containing this project

README

          

HOD - AngularJS Dark Magic
===============================
### Directives vs. Unit Testing

# Requirements

- git (:~)
- nodeJS
- npm
- bower
- mocha
- phatomjs
- mocha-phantomjs
- gulp

# Getting the source and configuring the tooling

```bash
$ git clone https://github.com/drborges/unit-testing-angular-directives.git hod
$ cd hod
$ npm install -g mocha mocha-phantomjs gulp phantomjs
$ npm install
$ bower install
```

# Running the Specs

Single run:

```bash
$ gulp spec
```

Continuously Testing:

```bash
$ gulp watch
```

Mocha runner in the browser:

```bash
$ open spec/spec.runner.html
```

# Examples

Check the examples under the example directory:

```bash
$ open examples/example.html
```