-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Unit tests for android_sdk and AndroidProject #464
Conversation
Codecov Report
@@ Coverage Diff @@
## master #464 +/- ##
==========================================
+ Coverage 52.03% 52.59% +0.56%
==========================================
Files 17 17
Lines 1695 1694 -1
Branches 312 312
==========================================
+ Hits 882 891 +9
+ Misses 813 803 -10
Continue to review full report at Codecov.
|
@@ -95,7 +94,7 @@ module.exports.list_targets = function () { | |||
} else throw err; | |||
}).then(function (targets) { | |||
if (targets.length === 0) { | |||
return Q.reject(new Error('No android targets (SDKs) installed!')); | |||
return Promise.reject(new Error('No android targets (SDKs) installed!')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to simply throw the Errors instead of wrapping them in a rejection and returning them. Might be personal taste though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no strong feelings either way. But, when replacing Q
, I wanted to keep the changes as simple as possible.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough
Platforms affected
Android
What does this PR do?
This is the last unit test PR for today, I promise! The
AndroidProject
tests were originally in #458. This PR also contains increased test coverage forandroid_sdk.js
. I have also refactored that to removeQ
, as with the other PRs I submitted today.What testing has been done on this change?
Run unit tests
Checklist