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
- Host: GitHub
- URL: https://github.com/drborges/tw-na-hod
- Owner: drborges
- License: mit
- Created: 2014-03-11T04:20:18.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2014-03-21T00:54:05.000Z (about 12 years ago)
- Last Synced: 2025-06-01T11:15:39.027Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 258 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```