Skip to content

Commit 7a87350

Browse files
author
paulsouche
committed
v0.1.0
1 parent b4ca00e commit 7a87350

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

README.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,35 @@
11
devFactory-jquery-requirejs
22
===========================
33

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 ;-)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "devFactory-jquery-requirejs",
3-
"version": "0.0.1",
3+
"version": "0.1.0",
44
"description": "empty dev factory to bootstrap a project with jquery and requirejs",
55
"main": "Gruntfile.js",
66
"scripts": {

0 commit comments

Comments
 (0)