PDA

View Full Version : UnitTests bundle for Sencha Touch



kostysh
8 Aug 2012, 7:57 PM
Create your own environment for UnitTest driven development for Sencha Touch applications in minutes.
First (beta) release is already on GitHub: https://github.com/kostysh/UnitTests-bundle-for-Sencha-Touch

Features:

JSLint tests
Jasmin UnitTests
Support for multiple projects
Ease to install
Demo project with tests
Thanks to Arthur Kay for good article http://www.sencha.com/blog/automating-unit-tests/
(http://www.sencha.com/blog/automating-unit-tests/and)and code: https://github.com/SenchaProSvcs/UnitTestDemo

Are anybody interested in this tool?
What do you think about name of this project? Maybe another name will be better?

venkatesh.R
8 Aug 2012, 10:23 PM
@Kostysh

Could you just explain how to set up and run the Test case for Sencha application.



Thanks,

kostysh
9 Aug 2012, 9:15 AM
Setup in details described in Readme on github repository https://github.com/kostysh/UnitTests-bundle-for-Sencha-Touch

This repository also contains a demo app with some tests (more in next release).
Please setup environment as explained before you start.

Tests you can find in 'tests' folder in Demoapp. If you a novice in UnitTests, I suggest you read about ideology of UnitTest-driven development and then learn Jasmine API: http://pivotal.github.com/jasmine/

Developing a UnitTest is not a hard task. Tests should be clear and simple.

After the tests are ready and index file in tests folder is configured - you can simply run testall.sh from console in 'tools' folder. JSLint errors and Jasmine output will be in 'logs' folder.

venkatesh.R
10 Aug 2012, 6:01 AM
Hi Kostysh


Thanks for your reply. i will follow your instructions for Unit testing.



Thanks