The xml report is not correct.
I do this:
require('behave').andSetup(this)
describe('Index screen', -> it('fox', -> expect(true).notToBe(null) ) it('supewolf', -> expect(true).notToBe(null) ) it('supewolf', -> expect(false).notToBe(false) )
)
But I got this:
<?xml version="1.0"?> <testsuites> <testsuite name="Index screen"> <testcase name="I expected true not to be null"> </testcase> <testcase name="I expected true not to be null"> </testcase> <testcase name="I incorrectly got false, when I expected false"> <failure type="NotEnoughFoo"> I incorrectly got false, when I expected false </failure> </testcase> </testsuite>
</testsuites>
I think the problem is that no test push is pushed into tests when invoke spec.evaluate.
BTW: Do you have any new ideas on doing ut in Titanium Mobile?
I do not get your problem, sorry for that. The XML seems correct as there is 1 testsuite and 3 testcases with 1 failure as expected.