 		]
 		balUtil.each inputs, (input) ->
 			test input.testname, (done) ->
-				command = [cliPath, 'render']
+				command = [nodePath, cliPath, 'render']
 				command.push(input.filename)  if input.filename
 				balUtil.spawn command, {stdin:input.stdin,cwd:rootPath}, (err,stdout,stderr,code,signal) ->
 					return done(err)  if err

expect = chai.expect
joe = require('joe')
_ = require('underscore')
pathUtil = require('path');

# -------------------------------------
# Configuration

# Vars
docpadPath = __dirname+'/../..'
rootPath = docpadPath+'/test'
renderPath = rootPath+'/render'
outPath = rootPath+'/render-out'
expectPath = rootPath+'/render-expected'
cliPath = pathUtil.resolve(docpadPath+'/bin/docpad')
nodePath = null

# -------------------------------------

		]
		balUtil.each inputs, (input) ->
			test input.filename, (done) ->
				command = [nodePath, cliPath, 'render', pathUtil.join(renderPath,input.filename)]
				balUtil.spawn command, {cwd:rootPath}, (err,stdout,stderr,code,signal) ->
					return done(err)  if err
					console.log({expect:stdout,toEqual:input})
