Skip to content

A very simple project to get in touch with angular, unit- and e2e-testing, bower, grunt and bootstrap

Notifications You must be signed in to change notification settings

adashst/todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Node.js

Setup the development environment by installing Node.js:

See nodejs.org.

Grunt

Install the Grunt Command Line Interface to setup the task runner:

npm install -g grunt-cli

Bower

Install the bower package manager for managing 3rd party libraries:

npm install -g bower

Node modules

Install the project build tools (grunt tasks and dependencies) as node modules:

npm install

Bower components

Install the 3rd party libraries (jQuery, Bootstrap, etc.) as bower components:

bower install

Usage

Tests

Unit Tests

Perform continuous unit tests (rerun on file changes until quit):

grunt karma:unit

Code coverage

Create a code coverage report in the coverage directory:

grunt karma:coverage

End-to-End Tests

Execute the end-to-end tests via command-line:

Install selenium

Run the Selenium installation script, located in the local node_modules/ directory

This script downloads the files required to run Selenium itself and build a start script and a directory with them.

./node_modules/protractor/bin/webdriver-manager update

Start selenium

Start the standalone version of Selenium with the Chrome driver by executing the start script

./node_modules/protractor/bin/webdriver-manager start

Protractor

launch Protractor to actually run the tests.

protractor public/test/e2e/protractor.conf.js

About

A very simple project to get in touch with angular, unit- and e2e-testing, bower, grunt and bootstrap

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages