npm install npm install -g phantomjs
node_modules/casperjs/bin/casperjs test runCasperTest.js --disk-cache=yes --flowpath= --url=
node_modules/casperjs/bin/casperjs test runCasperTest.js --disk-cache=yes --flowpath= --url= --generateMissingSnapshots
node_modules/casperjs/bin/casperjs test runCasperTest.js --disk-cache=yes --flowpath= --url= --generateScreenshots
node_modules/casperjs/bin/casperjs test runCasperTest.js --disk-cache=yes --flowpath= --url= --acceptSnapshot=
node_modules/casperjs/bin/casperjs test runCasperTest.js --disk-cache=yes --flowpath= --url= --acceptAllSnapshots
node_modules/casperjs/bin/casperjs test runCasperTest.js --disk-cache=yes --flowpath= --url= --xunit=xunit.xml
disk-cache=yes is required to suppress a warning(seems to be related to loading font files)