Skip to content

havber/test-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#HTML & JavaScript test-boilerplate

Boilerplate for Web-projects set up with casperjs for HTML-testing and karma test-runner for JavaScript testing.

###Installation

$ git clone git@github.com:havber/test-boilerplate.git
$ cd test-boilerplate

and

$ npm install

###Run tests

csperjs and karma emits an exit code if tests fail, which causes npm run to exit with an error. I have not figured out how to avoid this, so instaed i wrote simple shell scripts as shortcuts to run the tests. This is just because I don't want to install casperjs and karma globally and I don't want to use the entire node_modules path when executing the tests. I must find a way to streamline this.

For html testing, run the casperjs tests with $ ./htmltest.sh.

For js-testing, start the karma test-runner with $ ./jstest.sh.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published