Skip to content

Conversation

shridharkalagi
Copy link
Contributor

Change list

  1. Fixing the android tests
  2. Add Android CI integration

Types of changes

What types of changes are you proposing/introducing to Java client?
Put an x in the boxes that apply

  • No changes in production code.
  • Bugfix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Details

Have Included few tests in CI which always pass on the latest version on Android Emulator available on travis (android-25)

.travis.yml Outdated
- nvm install 8
- node --version
- npm --version
- npm install -g appium
Copy link
Member

Choose a reason for hiding this comment

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

Have added few env variables in travis, so you can use it. npm install -g $appiumVersion

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok Will update this. Does it need the below PR to be merged?

#1001

Copy link
Member

Choose a reason for hiding this comment

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

Nope. You can use right away.

filter {
includeTestsMatching '*.SettingTest'
includeTestsMatching 'io.appium.java_client.android.ClipboardTest'
includeTestsMatching '*.AndroidAppStringsTest'
Copy link
Member

Choose a reason for hiding this comment

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

Any reason why we have only three test classes? We can include all tests under android package.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Few tests run only on real devices, few needs adb to run as root and few are flaky (depends on the android emulator). Hence, included only those which are consistently running. Other tests can be picked once travis supports latest Emulator.

public class UIAutomator2Test {
private static AppiumDriverLocalService service;
protected static AndroidDriver<AndroidElement> driver;
public class UIAutomator2Test extends BaseAndroidTest {
Copy link
Member

Choose a reason for hiding this comment

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

this class can be deleted and all the tests can be moved to AndroidDriverTest.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AndroidDriverTest is not running in CI currently. Can this be done later?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Ok make travis happy

@appium appium deleted a comment Aug 21, 2018
@shridharkalagi
Copy link
Contributor Author

@SrinivasanTarget CI is failing as iOS tests not running due to missing env variables.
https://travis-ci.org/appium/java-client/builds/421407707

.travis.yml Outdated
@@ -1,3 +1,4 @@
language: java
Copy link
Member

Choose a reason for hiding this comment

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

remove this its not required.

@SrinivasanTarget
Copy link
Member

@shridharkalagi It's not failing due to env variables. I will have a look.

@shridharkalagi
Copy link
Contributor Author

@SrinivasanTarget can you check this pls?

@saikrishna321
Copy link
Member

saikrishna321 commented Sep 5, 2018

@shridharkalagi fix conflicts pls

@shridharkalagi
Copy link
Contributor Author

Fixed the conflicts. @SrinivasanTarget iOS CI is failing. Can you have a look?

@SrinivasanTarget
Copy link
Member

@shridharkalagi Travis is fine now. Make Codacy happy.

@appium appium deleted a comment Sep 16, 2018
@SrinivasanTarget SrinivasanTarget merged commit 4656309 into appium:master Sep 16, 2018
@shridharkalagi shridharkalagi deleted the fixAndroidCI branch September 17, 2018 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants