Christopher J. Brody
c15312ee70
unit test uninstall of <source-file> with app dest
...
for Java source, JAR, and AAR
Co-authored-by: Christopher J. Brody <chris.brody@gmail.com>
Co-authored-by: Kyle Kirbatski <kkirbatski@gmrmarketing.com>
Co-authored-by: Antonio Facciolo <afdev82@users.noreply.github.com>
2018-11-11 15:19:13 -05:00
Christopher J. Brody
3caefcae49
unit test source-file with custom lib target-dir
...
for JAR and AAR
(GH-540)
Co-Authored-By: Kyle Kirbatski <kkirbatski@gmrmarketing.com>
Co-Authored-By: Christopher J. Brody <chris.brody@gmail.com>
Co-Authored-By: @afdev82 (Antonio Facciolo)
2018-11-11 15:18:00 -05:00
Christopher J. Brody
fb1dfb27df
unit test uninstall of <source-file> with app dest
...
for Java source only (GH-539)
Co-Authored-By: Christopher J. Brody <chris.brody@gmail.com>
Co-Authored-By: Kyle Kirbatski <kkirbatski@gmrmarketing.com>
2018-11-11 15:15:36 -05:00
Kyle Kirbatski
898a6a8d8d
Add a unit test to test source-file target-dir /app/src/main/…
2018-11-11 15:15:35 -05:00
エリス
98c866704a
Only copy platform node_modules when create by bin
2018-11-06 16:08:34 +09:00
エリス
dacb0e5c72
CB-14201: (android) Removes Gradle property in-line command arguments for gradle.properties
2018-09-06 14:16:05 +09:00
エリス
23b24491c3
Fixes build & run related bugs from builder refactor PR #461 ( #490 )
...
- General Code Refactor
- Removed builder type argument from getBuilder API
- Removed any reference of conditional statements around builder type
- Remove plugin handler install and uninstall option flag android_studio
- Remove --gradle flag references
- Fixed plugin handler install and uninstall pathing issues
- Added parseBuildOptions export so run can get build related options.
- Use the nobuild flag option to control the run build.
- Updated test spec to reflect the changes.
2018-09-06 11:06:18 +09:00
Gearóid
7ab0cf123d
Unit tests for android_sdk and AndroidProject ( #464 )
...
<!--
Please make sure the checklist boxes are all checked before submitting the PR. The checklist
is intended as a quick reference, for complete details please see our Contributor Guidelines:
http://cordova.apache.org/contribute/contribute_guidelines.html
Thanks!
-->
### 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 for `android_sdk.js`. I have also refactored that to remove `Q`, as with the other PRs I submitted today.
### What testing has been done on this change?
Run unit tests
### Checklist
- [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html ) in the JIRA database
- [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
- [x] Added automated test coverage as appropriate for this change.
2018-09-02 04:44:37 +02:00
エリス
8f2a4c7231
CB-13685 android: Adaptive Icon Support
...
- Update default project template's icons to be adaptive.
- Added backwards support for non-adaptive icon supported devices.
2018-08-29 10:13:14 -07:00
Raphael von der Grün
ebbd91f87d
Merge pull request #461 from Menardi/refactor_builders_with_tests
...
Remove old builders code
2018-07-21 16:43:34 +02:00
Gearoid M
4b0725dfc2
Remove no longer needed AndroidStudio.js
2018-07-10 11:53:52 +09:00
Gearoid M
8ee3a73dd1
Remove unused builders and add unit tests
2018-07-10 11:53:52 +09:00
Darryl Pogue
b6e4598e7c
Merge pull request #463 from Menardi/emulator_tests
...
Emulator: Add unit tests and remove Q
2018-07-02 21:21:43 -07:00
Gearoid M
d26c1199ab
Increase unit test coverage for emulator
2018-07-03 11:39:29 +09:00
Gearoid M
b2263fe35e
Add unit tests for device
2018-07-03 10:43:30 +09:00
Gearoid M
0bf0e48698
Prevent Api.js tests from polluting the reporter output
2018-06-22 10:02:31 +09:00
Gearoid M
4f1aa97ea9
Add unit tests for AndroidManifest.js
2018-06-22 10:02:31 +09:00
Gearoid M
f90f004dea
Add unit tests for Adb.js
2018-06-22 10:02:31 +09:00
Gearoid M
559b0833b4
Add unit tests for run and retryPromise
...
Co-authored-by: Raphael von der Grün <raphinesse@gmail.com>
2018-06-20 13:24:50 +02:00
Julio César
fe7629e8fc
CB-14038 (android): fix false positive detecting project type
2018-04-18 13:52:04 +02:00
Joe Bowser
6cf6e20d2e
Merge branch 'master' into StudioProjectCompat, fixing conflicts, need
...
to re-add previous PR fix on the branch
2017-10-18 11:04:44 -07:00
filmaj
ec83d481fa
CB-13406: Fixed AVD API level comparison when choosing sub-par API level match. Added tests for the best_image method.
2017-10-05 15:18:42 -05:00
Joe Bowser
f3c238db1c
CB-11244: Adding specs for resource files inside an Android Studio Project
2017-10-03 14:16:27 -07:00
Joe Bowser
b1f527e682
Merge branch 'master' into StudioProjectCompat
2017-09-28 10:21:49 -07:00
filmaj
1637937664
CB-12981: handle SDK 26.0.2 slightly different AVD list output for Android 8+ AVDs. Would cause "cannot read property replace of undefined" errors when trying to deploy an Android 8 emulator.
2017-09-14 11:26:18 -07:00
Joe Bowser
46905ebe99
Merge branch 'master' into StudioProjectCompat. Dealing with latest
...
commits merged into master.
2017-07-31 13:43:21 -07:00
Nikita Matrosov
36d07d7a15
CB-13031: Fix bug with case-sensitivity of android-packageName
...
this closes #397
2017-07-28 14:05:53 +03:00
Joe Bowser
00c879e27d
It passed then failed. I'll change the test for now, because perfect is the enemy of good.
2017-07-18 11:53:44 -07:00
Joe Bowser
99f15c507d
Updating paths in the unit tests, leaving the failing test and coding against that
2017-07-12 11:13:20 -07:00
filmaj
5917d4ef0b
CB-13006: removed create and update end-to-end tests, and instead added more unit test coverage. tweaked code coverage invocation so that we get coverage details on the create.js module. slight changes to the create.js module so that it is slightly easier to test.
2017-07-11 12:54:15 -05:00
filmaj
90053eb9df
CB-12950: lots of tweaks for end-to-end test runs, especially on CI:
...
- rename npm tasks to reflect what they do (npm run unit-tests, npm run e2e-tests). main `npm test` runs linter, unit tests and e2e tests now.
- locked jasmine down to ~2.6.0.
- consolidate gitignores.
- updated travis to run `npm test`. add android sdk installation to appveyor ci run.align android dpendencies across travis and appveyor. have appveyor install gradle. force gradle to version 3.4.1 in appveyor, as that seems to be the only version choco has. explicitly invoke sdkmanager to move license accepting process along.
2017-06-27 15:59:16 -05:00
Nikita Matrosov
540929c6a0
CB-9971: Suppressed unwanted java stderr output when running gradle wrapper
...
this closes #388
2017-06-26 21:17:58 +03:00
Audrey So
55d7cf3865
CB-12895 : updated .eslintrc file in spec dir and set jasmine true and removed root is true
2017-06-23 08:44:08 -07:00
Audrey So
ac4ac935f6
CB-12895 : added .eslintrc files to set up jasmine environment
2017-06-23 08:07:08 -07:00
Audrey So
d83d49d83b
CB-12895 : fixed eslint errors
2017-06-23 08:07:08 -07:00
filmaj
9d9abea157
Start of GradleBuilder.js specs - puts it on the code coverage radar.
2017-05-02 15:31:26 -07:00
filmaj
e13e15d3e9
CB-12640: better handling of unrecognized commands on windows. removed error checking in emulator image listing when shelling out, as we already defensively dont shell out if the program is not on the PATH / not recognized. added additional test for windows unrecognized command errors for target listing. fixed up spying in a test.
2017-04-10 12:12:46 -07:00
filmaj
6ef2f67ae8
CB-12640: flipped avd parsing logic so that it always tries to use avdmanager to retrieve avds first, then falls back to android command if avdmanager cannot be found (and errors with ENOENT). updated tests - and added explicit tests to ensure to shell out to singular forms of sub-commands when executing android
2017-04-10 12:12:46 -07:00
filmaj
765c4ee9f6
CB-12640: support for android sdk tools 26.0.1. simplified target parsing by using avdmanager instead of sdkmanager. flipped target parsing logic so that it always tries to use avdmanager to retrieve targets first, then falls back to android command if avdmanager cannot be found (and errors with ENOENT). updated tests.
2017-04-10 12:12:46 -07:00
filmaj
3554267adf
CB-12546: more specs for android_sdk and check_reqs. added fixtures for sdk targets. refactored target listing.
2017-03-20 10:09:45 -07:00
filmaj
4a354bba86
CB-12546: based on android
command exit code and stdout, conditionally try to invoke avdmanager
to list out AVD images. tweak relevant test to match behaviour. small tweak to use exposed methods for checking platform (for easier future stubbing).
2017-03-20 10:08:36 -07:00
filmaj
d40c22441f
CB-12546: move check_reqs to templates directory and update module references.
2017-03-20 10:08:36 -07:00
filmaj
6395eda0c8
CB-12546: emulator specs.
2017-03-20 10:08:36 -07:00
filmaj
eb6ada8091
CB-12546: more robust sdk location detection. ANDROID_HOME now can be set from location of either of adb
, android
or avdmanager
commands. slightly rework logic of infering ANDROID_HOME + setting up PATH to hopefully separate the logic into clearer sections. check_reqs.check_android now validates SDK Tools 25.3.1 binaries/structure. added specs for check_reqs.check_android. move android sdk version script. expose some helper functions as module methods to help with mocking.
2017-03-20 10:08:35 -07:00
audreyso
3fc4daa447
CB-12018 : updated tests to work with jasmine (promise matcher tests commented out for now)
2017-01-11 17:07:17 -08:00
Joe Bowser
1af5ade39a
Adding isClean to the spec, this really should have failed a few commits ago
...
This closes #349
2016-12-05 15:32:18 -08:00
Jesse MacFadyen
0fd7e7f040
Fixed AndroidStudio tests to actually run, removed app/src/main/assets/ as a requirement and added app/src/main/res instead, added placeholder for build/ folder, Removed dupe gitignore
2016-11-02 19:46:33 -07:00
Alexander Sorokin
5db2de95f5
CB-11964 Call clean after plugin install and mock it in tests
2016-10-07 18:14:36 -07:00
Anis Kadri
f5ab6fc602
adding tests for Android Studio
...
This closes #331
2016-09-20 19:54:38 -07:00
Anis Kadri
222fb1c0e7
adding tests for AndroidStudio
2016-09-20 19:54:34 -07:00