/TitaniumDartsGame

Primary LanguageJavaScriptOtherNOASSERTION

TitaniumDartsGame

Installation

  1. Follow the instructions on the Titanium website to set up Titanium and Titanium studio.

  2. Import the project in Titanium with File -> Import from Titanium Studio

  3. 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

Building

  • titanium build --build-only [--platform android|ios] to build the app from the command line

Testing

Unit tests

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

User acceptance tests

You can either run them manually following the steps mentioned below or run sh test/uat.sh.

steps

  • 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