nathanboktae / mocha-casperjs

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

Using with Testem - all tests output as one test with CI? #33

Closed KingScooty closed 10 years ago

KingScooty commented 10 years ago

When using the continuous integration mode in Testem, all of the mocha-casperjs tests appear to show up as one test instead of individually. Testem is outputting in TAP mode when in continuous integration, it doesn't appear that mocha-casperjs supports this?

nathanboktae commented 10 years ago

Are you using the tap reporter? mocha-casperjs just pipes output from whatever reporter to standard out.

KingScooty commented 10 years ago

Err, i'm not sure how to change the reporter? I know with mocha it's --reporter tap etc. The default reporter for mocha-casperjs seems to be the spec reporter? This one:

Spec

Then this is what it looks like when using Testem ci:

Testem

Doesn't seem to output properly :/ But standard mocha tests output fine.

nathanboktae commented 10 years ago

--reporter=tap

the = is required as I'm relying on the casper options parser which requires spaces. I'd be nice to update casper's parser to allow use of spaces

KingScooty commented 10 years ago

A-ha, so tap is working. Hmm, it must be a testem issue. Wonder why it's rendering differently :/ I'll try over on the testem page and report back.

Testem output: Testem

Standard mocha-casper output: Mocha-Casper

nathanboktae commented 10 years ago

likely... fyi mocha-casperjs doesn't run on Node.js at all. :) just using npm for distribution.