Yesterday I wrote my first tests with CasperJS, and I find it awesome. The problem is that I could not find a way to exit the script (i.e.: casperjs does not exist, so I can access my console back). I found a workaround by adding a final test, for example:
casper.test.begin('Exit', function suite(test) { casper.exit(); });
Regarding this technique, I have 2 questions
- Is there a better way?
- How will this affect the output to xunit?
phantomjs casperjs
Adrian miu
source share