iamchrismiller / grunt-casper

Run CasperJS Scripts/Functional Tests
Other
69 stars 38 forks source link

verbose mode doesn't work - casper is ran as a spawn #11

Closed pgilad closed 10 years ago

pgilad commented 10 years ago

When running casper through grunt casper with option verbose (and direct) - I see the output being displayed only after casper has finished running.

This is different from the intended outcome, as running casperjs with the same options, I see the logs & progress as it goes, and I don't have to wait for the spec to finish working.

Perhaps this is due to the fact you are creating casper as a spawn?

CasperJs version: 1.1.0-DEV "grunt-casper": "0.1.3" Windows 7 Latest GruntJs

iamchrismiller commented 10 years ago

Yes, that is in fact the reason why. You have to run Casper through a spawned process because QtWebKit and V8 don't share the same js environment or event loop.