tonylukasavage / ti-mocha

Simple and reliable support for mocha testing with Appcelerator's Titanium SDK
Other
64 stars 21 forks source link

crash may occur during test #35

Open workingenius opened 8 years ago

workingenius commented 8 years ago

Thank you for your work; I was looking for a unit test lib for ti, and I came here.

I imported ti-mocha.js, wrote some simple test code (10 lines or so), and run. App crashed with log as follow:

Account get captcha info o should get captcha info: [INFO] 2016-01-12 15:31:07.026 stockmap-ios[36066:107451] Simulator user has requested new graphics quality: 10 [INFO] null [INFO] Assertion failed: (self.url != nil), function -[APSHTTPRequest send], file /Users/kiat/titaniumModules/APSHTTPClient/APSHTTPClient/APSHTTPRequest.m, line 77.

this is my ti env, and I'm coding on iOS.

5.1.1.GA Version = 5.1.1 Install Location = /Users/ruqi/Library/Application Support/Titanium/mobilesdk/osx/5.1.1.GA Platforms = android, mobileweb, iphone git Hash = e46100b git Timestamp = 11/24/15 11:07 node-appc Version = 0.2.32

Xcode 7.2 (build 7C68) - Xcode default Install Location = /Applications/Xcode.app/Contents/Developer iOS SDKs = 9.2 iOS Simulators = 9.2, 8.2, 8.1 Watch SDKs = 2.1 Watch Simulators = 2.1 Supported by TiSDK 5.1.0.GA = yes EULA Accepted = yes

I guess that it has something to do with ti sdk. I'm not familiar with obj-c development..

tonylukasavage commented 8 years ago

Seeing as how ti-mocha doesn't make http requests, it seems unlikely that ti-mocha is the cause of this issue. I'd suggest trying to run a basic titanium app without ti-mocha to try and narrow down the source of your error.