empty dev factory to bootstrap a project with jquery and requirejs with unit & e2e tests support.
You love test your projects ? You should take a look on how tests are made here.
- Install node and npm
- Install Grunt running
npm install -g grunt-cli
- Install Bower running
npm install -g bower
- Launch
npm install
andbower install
at the root of your project
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.
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 :
Any way you choose you have to add java to your path
The simplest way for me is to install protractor by running npm install -g protractor
which is an amazing testing tool for angularjs
- This add the
webdriver-manager
command to your path - Just type
webdriver-manager update (ie)
to update the browsers drivers (ie is for the one who loves it) - You are ready to go just type
webdriver-manager start
to get your server up and ready
If you don't like angularjs and protractor you can always download a selenium jar...
You're done ? So just check the grunt test:e2e
command (be sure to have chrome) to see how the specs work.
For now, it's up to you ;-)