Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
function addSlashes( str ) { | |
return (str+'').replace(/([\\"'])/g, "\\$1").replace(/\0/g, "\\0"); | |
} | |
var spawn = require('child_process').spawn; | |
var growl = require('growl'); | |
var coffee = './node_modules/.bin/coffee'; | |
var coffee_tasks = []; | |
var handlebars_tasks = []; | |
coffee_tasks.push(spawn(coffee, ['-cwo', 'static/js', 'static/coffee'])); | |
coffee_tasks.push(spawn(coffee, ['-cwo', 'test', 'test/src'])); |
Put test1.js
and test2.js
into a tests/
directory, then run the suite:
$ casperjs test tests/ --pre=pre.js --includes=inc.js --post=post.js
Test file: /Users/nperriault/tmp/pre-inc/pre.js
Hey, I'm executed before the suite.
Test file: /Users/nperriault/tmp/pre-inc/tests/test1.js
# this is test 1
Hi, I've been included.
PASS Subject is strictly true