|
1 | 1 | devFactory-jquery-requirejs
|
2 | 2 | ===========================
|
3 | 3 |
|
4 |
| -empty dev factory to bootstrap a project with jquery and requirejs |
| 4 | +empty dev factory to bootstrap a project with jquery and requirejs with unit & e2e tests support. |
| 5 | + |
| 6 | +## Why is this project interesting ? |
| 7 | + |
| 8 | +You love test your projects ? You should take a look on how tests are made here. |
| 9 | + |
| 10 | +## Prerequisites |
| 11 | +1. Install [node and npm](http://www.nodejs.org) |
| 12 | +2. Install **Grunt** running `npm install -g grunt-cli` |
| 13 | +3. Install **Bower** running `npm install -g bower` |
| 14 | +4. Launch `npm install` and `bower install` at the root of your project |
| 15 | + |
| 16 | +## What more do I need for this amazing stuff ? |
| 17 | + |
| 18 | +The template contains an (ugly) micro app to show you how to start. Everything is set up for your unit test. Just check the `grunt ls` command to see what tasks are availables. |
| 19 | + |
| 20 | +It's a little bit more tricky about end to end tests. You need to have a selenium driver listening on port 4444. There are many ways to achieve that : |
| 21 | + |
| 22 | +Any way you choose you have to add [java](https://www.java.com) to your path |
| 23 | + |
| 24 | +The simplest way for me is to install [protractor](https://github.com/angular/protractor) by running `npm install -g protractor` which is an amazing testing tool for [angularjs](https://angularjs.org/) |
| 25 | +1. This add the `webdriver-manager` command to your path |
| 26 | +2. Just type `webdriver-manager update (ie)` to update the browsers drivers (ie is for the one who loves it) |
| 27 | +3. You are ready to go just type `webdriver-manager start` to get your server up and ready |
| 28 | + |
| 29 | +If you don't like angularjs and protractor you can always download a selenium jar... |
| 30 | + |
| 31 | +You're done ? So just check the `grunt test:e2e` command (be sure to have chrome) to see how the specs work. |
| 32 | + |
| 33 | +## How do I build my app ? |
| 34 | + |
| 35 | +For now, it's up to you ;-) |
0 commit comments