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

Test and Test App Cleanup #2630

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

brandonpage
Copy link
Contributor

  • Fixed Server Picker UI tests.
  • Downgraded hybrid test apps to API 34 to avoid Edge to Edge issues.
  • Fixed Edge to Edge issues on native test apps.
  • Fixed a couple AndroidManifest issues with test apps.

Comment on lines +303 to +305
if (!SalesforceSDKManager.getInstance().getIsTestRun()) {
startActivity(intent);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I really don't love this, but it seems to be the only way to get the tests to run consistently.

@@ -26,7 +26,6 @@
*/
package com.salesforce.samples.restexplorer;

import static androidx.test.InstrumentationRegistry.getInstrumentation;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Every change in this class is either fixing a warning or changing Thread.sleep to device.waitForIdle (which speeds things up).

@mobilesdk-bot
Copy link

1 Warning
⚠️ No Lint Results.

Tests results for SmartStore

Generated by 🚫 Danger

@mobilesdk-bot
Copy link

1 Error
🚫 Tests have failed, see below for more information.
1 Warning
⚠️ No Lint Results.

Tests:

Name Classname Time
test[testRestEndpoint] com.salesforce.androidsdk.phonegap.ForceJSTest 0.004

Tests results for SalesforceHybrid

Generated by 🚫 Danger

@mobilesdk-bot
Copy link

1 Warning
⚠️ No Lint Results.

Tests results for MobileSync

Generated by 🚫 Danger

@mobilesdk-bot
Copy link

1 Warning
⚠️ No Lint Results.

Tests results for SalesforceSDK

Generated by 🚫 Danger

@mobilesdk-bot
Copy link

1 Warning
⚠️ No Lint Results.

Tests results for SalesforceReact

Generated by 🚫 Danger

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 58.87%. Comparing base (ebe43e3) to head (9710d76).

Files with missing lines Patch % Lines
...salesforce/androidsdk/ui/ServerPickerActivity.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                dev    #2630      +/-   ##
============================================
- Coverage     58.91%   58.87%   -0.04%     
  Complexity     2452     2452              
============================================
  Files           189      189              
  Lines         15432    15474      +42     
  Branches       1997     1998       +1     
============================================
+ Hits           9091     9111      +20     
- Misses         5413     5431      +18     
- Partials        928      932       +4     
Flag Coverage Δ
MobileSync 82.02% <ø> (ø)
SalesforceHybrid 57.36% <ø> (-0.38%) ⬇️
SalesforceReact 52.36% <ø> (ø)
SalesforceSDK 45.05% <0.00%> (+<0.01%) ⬆️
SmartStore 78.30% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...salesforce/androidsdk/ui/ServerPickerActivity.java 0.00% <0.00%> (ø)

... and 5 files with indirect coverage changes

@brandonpage brandonpage merged commit fbc26b4 into forcedotcom:dev Oct 22, 2024
9 checks passed
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.

4 participants