Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts #46

Merged
merged 2 commits into from May 10, 2012

Conversation

dlifshitz-maca
Copy link

Reviewers: Alex, Harut
Note: you need to install Titanium Desktop 1.2. Links can be found under the Running Drillbit section of http://docs.appcelerator.com/titanium/2.0/index.html#!/guide/Writing_Unit_Tests_with_Drillbit

[Issues Fixed]
(partial) TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts

[Added]
blackberry.js

  • note: there is some commented-out code that should be ignored for now

[Changed]
index.html, drillbit.js, drillbit.py, drillbit_sdk.py, drillbitTest.js, drillbitmodule.js

  • added BlackBerry counterparts

drillbit.py

  • added the user's app data location to the search path

[Tests]
Precondition: need to build mobile sdk using scons
Test 1: Run drillbit

  1. Run one of the following commands:
    drillbit\drillbit.py --platforms=android
    or
    drillbit\drillbit.py --platforms=blackberry
    or
    drillbit\drillbit.py --platforms=android,blackberry
    or
    drillbit\drillbit.py --platforms=blackberry,android
  2. Verify the tests are shown
  3. Click "run tests"
  4. Verify the tests are run
    Note: the BlackBerry tests will not complete because the building step is not implemented yet

[Issues Fixed]
(partial) TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts

[Added]
blackberry.js
- note: there is some commented-out code that should be ignored for now

[Changed]
index.html, drillbit.js, drillbit.py, drillbit_sdk.py, drillbitTest.js, drillbitmodule.js
- added BlackBerry counterparts

drillbit.py
- added the user's app data location to the search path

[Tests]
Test 1: Run drillbit
1) Run one of the following commands:
drillbit\drillbit.py --platforms=android
or
drillbit\drillbit.py --platforms=blackberry
or
drillbit\drillbit.py --platforms=android,blackberry
or
drillbit\drillbit.py --platforms=blackberry,android
2) Verify the tests are shown
3) Click "run tests"
4) Verify the tests are run
Note: the BlackBerry tests will not complete because the building step is not implemented yet

// TODO: the above needs to be implemented in blackberryndk.py. For now just fake it:
result = "BLACKBERRY_NDK=C:\\bbndk-10.0.03";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have blackberry NDK detection in blackberryndk.py, so probably no need in this.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lines above were taken from the android version, but I put the TODO there to fix things in another patch.

@alexandergalstyan
Copy link

Can run the tests, but for blackberry it seems hang on issuing make. Have you noticed such issue?

@dlifshitz-maca
Copy link
Author

As discussed, make doesn't run for blackberry yet for these tests.

@Harutyun
Copy link

Harutyun commented May 8, 2012

Approved

@dlifshitz-maca
Copy link
Author

Addressed comments.


BlackBerrySimulator.prototype.fillTiAppData = function(data) {
if(data.androidRuntime === undefined) {
data.androidRuntime = "none";
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

android? really?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, really. see iphone.js

dlifshitz-maca added a commit that referenced this pull request May 10, 2012
TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts

[Issues Fixed]
(partial) TIMOB-8943: BlackBerry: Add BlackBerry to drillbit scripts

[Added]
blackberry.js

    note: there is some commented-out code that should be ignored for now

[Changed]
index.html, drillbit.js, drillbit.py, drillbit_sdk.py, drillbitTest.js, drillbitmodule.js

    added BlackBerry counterparts

drillbit.py

    added the user's app data location to the search path

[Tests]
Precondition: need to build mobile sdk using scons
Test 1: Run drillbit
1) Run one of the following commands:
drillbit\drillbit.py --platforms=android
or
drillbit\drillbit.py --platforms=blackberry
or
drillbit\drillbit.py --platforms=android,blackberry
or
drillbit\drillbit.py --platforms=blackberry,android
2) Verify the tests are shown
3) Click "run tests"
4) Verify the tests are run
Note: the BlackBerry tests will not complete because the building step is not implemented yet
@dlifshitz-maca dlifshitz-maca merged commit 207e521 into Macadamian:blackberry May 10, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants