-
Follow the instructions on the Titanium website to set up Titanium and Titanium studio.
-
Import the project in Titanium with File -> Import from Titanium Studio
-
Navigate to the project directory in your terminal
-
install the currently set sdk
titanium sdk install 3.4.1.GA
-
install the acceptance test runner/framework calabash
sudo gem install calabash-cucumber
-
install NodeJS
- install the dependencies for the tests
npm install
- install the dependencies for the tests
titanium build --build-only [--platform android|ios]
to build the app from the command line
Run the unit tests with npm test
The unit tests are located in the test/
directory and have the extension *.test.js
The test runner is mocha
You can either run them manually following the steps mentioned below or run sh test/uat.sh
.
-
build the app
titanium build --build-only --skip-js-minify --platform android
-
resign the apk
calabash-android resign build/android/bin/DartsGame.apk
-
run the User Acceptance Tests
calabash-android run build/android/bin/DartsGame.apk