Behavior Driven Development
I am committed to BDD.
We use Cucumber & RSpec for all our ruby projects.
Has anyone attempted to use these BDD tools with Titanium.
We are looking at leveraging our Ruby / BDD skills for mobile development.
What if any Testing technologies are known to work with Titanium.
6 Answers
-
I am wondering about this myself. I posted a [question]:https://developer.appcelerator.com/question/741/unit-testing-support about it. I would love to be able to do BDD with mobile apps I develop using Titanium, but without a JavaScript (and mockable) skeleton of the Titanium APIs, I don't think there is a way to do it.
-
There's titanium-jasmine which I'm going to be trying on my next project. It's totally lame that Appcelerator is the only mobile dev environment that I'm aware of now that doesn't including a testing environment with the core platform.
For such a great platform it's surprising the engineers at Appcelerator didn't start with the testing framework and then build the platform. As a programmer in the bay area you could get away with "I don't test" 5 years ago but nowadays not testing as part of your development process just means you don't get hired.
-
I too am commited to BDD (with Cucumber & RSpec). It makes my physical ill to not have that safety net and guidance when developing for Titanium (+ it takes forever to manually test things)
I'm very interested in any pointers to this too.
cheers
jc -
-
Wow. I know this question was asked 4 YEARS ago, but we are right there with you, Steven.
Cucumber is now possible on Titanium. I promise to have viable BDD training very soon including outside-in TDD for Titanium. For now check this out:
http://blog.codexlabs.com/blog/2013/09/22/cucumber-testing-with-titanium/
-
Bill Dawson has also provided a Jasmine-based framework, called TiJasmine hosted on github. I'm learning it now because should.js is broken in Alloy 1.3 which prevents me from using ti-mocha (per Tony Lukasavage). Since js testing frameworks are new to me, I'm not predisposed to any one in particular. I just want something simple and effective. I'd rather focus on building great apps.