Closed windkomo closed 8 years ago
Sorry for not responding earlier but I paused since all the tests failed.
Also add a test for this feature with something like
it 'should use an opts file from another location', (done) ->
fs.writeFileSync 'mocha-casperjs.opts', '--user-agent=wrong-optsfile'
fs.writeFileSync 'some-other-mocha-casperjs.opts', '--user-agent=some-other-mocha-casperjs-opts'
runMochaCasperJsTest
params: ['--reporter=json']
test: ->
casper.page.settings.userAgent.should.equal 'some-other-mocha-casperjs-opts'
, (output, code) ->
results = JSON.parse output
results.stats.passes.should.equal 1
results.stats.failures.should.equal 0
done()
@nathanboktae Thanks for the feedback, I made some changes that I hope will suit you
Thanks for the good work :)
Usage :
Option file path :
Add test directory in the opts file:
Fix #95