How to make ti-mocha's error message more detailed?

30 views
Skip to first unread message

shensi...@gmail.com

unread,
Feb 21, 2015, 6:56:18 PM2/21/15
to tish...@googlegroups.com
hi all,

  I am using TiShadow for running spec tests, but the error message is not detailed enough and very hard to understand where is wrong: 

for example,  one failed message is: 


  1) should open home.xml:  "before each" hook:
     TypeError: undefined is not a function
      at new Controller (eval at custom_require (api/PlatformRequire.js:24:99))
      at Object.createController (eval at custom_require (api/PlatformRequire.js:24:99))
      at Context.<anonymous> (eval at custom_require (api/PlatformRequire.js:24:99))
      at Hook.run (lib/ti-mocha.js:4332:32)
      at next (lib/ti-mocha.js:4609:10)
      at lib/ti-mocha.js:4626:5
      at Titanium.timeslice (lib/ti-mocha.js:5692:27)

There is no information about which line of code in my controller( app/controllers/home.js)  or view( app/views/home.xml) caused this error. 

Is there any suggestion? 

thanks,
Siwei

Reply all
Reply to author
Forward
0 new messages