NuclearJS is a boilerplate to start your test cases with CasperJS for every project. You don't need always code the same things!
Based in Atomic Design Concept for organization:
Example of folder structure:
source/
atoms/
a.js (case test for links)
molecules/
search.js (case test for search form)
organisms/
header.js (case test for header element)
pages/
index.js (case test for index.html)
tests/
checkout.js (case test for checkout process)
init.js (case test initializer)
nuclear.json (your paths)
npm intall -g phantomjs-prebuilt
npm install
$ npm test --
$ npm test -- --url=http://www.example.com --screenshot=true
$ npm test -- --url=http://www.example.com --ignore=atoms
$ npm test -- --url=http://www.example.com --page=index
$ npm test -- --url=http://www.example.com --network=true
Please, submit an issue or send me a pull request.
Thank you Brad Frost by inspiration!