On Thu, Jul 25, 2013 at 10:58 PM, Michael Reust <
re...@betterment.com> wrote:
> I run that simple test with the --unit modifier and no file is created.
The --xunit (note the 'x') option only works using the `casperjs
test`subcommand.
Test script:
// test.js
casper.start('
http://google.com', function() {
this.test.pass('plop');
});
casper.run(function() {
this.test.done();
});
Execution (using casper 1.0.2):
$ casperjs test test.js --xunit=log.xml
Test file: test.js
PASS plop
PASS 1 test executed in 0.071s, 1 passed, 0 failed, 0 dubious, 0 skipped.
Result log stored in log.xml
$ cat log.xml
<testsuite time="0"><testcase classname="test" name="plop"
time="0.056"></testcase></testsuite>
As a side note, you should consider switching to 1.1-beta1 which
provides a better XUnit output.
++
--
Nicolas Perriault
https://nicolas.perriault.net/
Phone: +33 (0) 660 92 08 67