nathanboktae / mocha-casperjs

Write CasperJS tests using Mocha
MIT License
120 stars 30 forks source link

Add more options to mocha-casper.opts #95

Closed windkomo closed 8 years ago

windkomo commented 8 years ago

I noticed the mocha-casperjs.opts file behaved differently from the mocha.opts file :

Whereas mocha-casperjs.opts must be in the current directory or it won't be found (unless I'm mistaken).

Also, mocha.opts allows specifying a test directory where to look for test files: mocha.opts: test/unit

Any opinion ?

nathanboktae commented 8 years ago

Yup these both sound like great improvements.

windkomo commented 8 years ago

Thanks for the fast input, I'll try to submit a PR this week or so !

nathanboktae commented 8 years ago

Great, looking forward to it :)

payaaam commented 8 years ago

Will this include the ability to specifcy the --recursive flag? mocha-casperjs is freezing or just not finding test files when I specify a folder with multiple tests in it.

windkomo commented 8 years ago

I'll try, at least :)

nathanboktae commented 8 years ago

Will this include the ability to specifcy the --recursive flag?

This is tracked in #20 and a bit bigger work item because you need a walk implementation that runs in phantomjs. I'd do that as separate PR.

mocha-casperjs is freezing or just not finding test files when I specify a folder with multiple tests in it.

sounds like a separate issue.

windkomo commented 8 years ago

@nathanboktae I submitted a PR, looking forward to feedback :)