[TIMOB-4490] Drillbit: Unit tests for the MobileSDK
| GitHub Issue | n/a |
|---|---|
| Type | New Feature |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2011-07-29T15:12:26.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Sprint 2011-30, Release 1.8.0 |
| Components | Drillbit |
| Labels | coverage |
| Reporter | Marshall Culpepper |
| Assignee | Marshall Culpepper |
| Created | 2011-06-23T15:01:00.000+0000 |
| Updated | 2017-03-08T00:08:49.000+0000 |
Description
We need a suite of unit tests for our various MobileSDK scripts (project.py, builder.py, etc). I've started work on this on my fork here:
https://github.com/marshall/titanium_mobile/tree/drillbit_sdktests/drillbit
Right now this only tests project.py and builder.py for Android, but we could incrementally add changes to this as we go.
To test this new test suite, you use a new frontend:
drillbit/drillbit_sdk.py. To start, just copydrillbit/sdk_tests/sdkconfig.py.exampletodrillbit/sdk_tests/sdkconfig.py. Make sure to setandroidSdkto your system's Android SDK installation, or alternatively set the environment variable ANDROID_SDK. To run the test suite, just run the script after copying the default sdkconfig.py. There are currently 3 tests: 2 for Android, 1 for iOSClosing ticket due to time passed.