-
Notifications
You must be signed in to change notification settings - Fork 9
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
functional tests - part 1 #20
Conversation
Codecov Report
@@ Coverage Diff @@
## dev-v2.0.0 #20 +/- ##
================================================
+ Coverage 82.43% 84.50% +2.07%
- Complexity 135 140 +5
================================================
Files 6 6
Lines 592 600 +8
Branches 84 89 +5
================================================
+ Hits 488 507 +19
+ Misses 77 62 -15
- Partials 27 31 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
|
...dience/src/androidTest/java/com/adobe/marketing/mobile/audience/AudienceFunctionalTests.java
Show resolved
Hide resolved
...dience/src/androidTest/java/com/adobe/marketing/mobile/audience/AudienceFunctionalTests.java
Outdated
Show resolved
Hide resolved
|
||
// preset the config and shared Preferences | ||
//mockUUIDInPersistence(); | ||
registerExtensions(config); |
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.
MobileCore.updateConfiguration(config);
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.
registerExtensions with config calls updateConfiguration underneath for quick setup
signalRequest | ||
); | ||
assertEquals(2, requests.size()); | ||
assertTrue(requests.get(0).getUrl().contains("https://server/event?")); |
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.
should we verify the second request as well?
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.
verified below on requests.get(1)
...dience/src/androidTest/java/com/adobe/marketing/mobile/audience/AudienceFunctionalTests.java
Outdated
Show resolved
Hide resolved
TestableNetworkRequest signalRequest = new TestableNetworkRequest("https://server/event", HttpMethod.GET); | ||
testableNetworkService.setExpectedNetworkRequest(signalRequest, 2); | ||
|
||
config.put("global.privacy", "optunknown"); |
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.
should we use MobileCore.setPrivacyStatus(MobilePrivacyStatus.OPT_UNKNOWN);
in place of updateConfig?
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.
again, this time just overwriting config with privacy unknown and setting the config on registration
Have left few comments. Otherwise looks good! |
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.
Looks good!
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: