Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit a4bd2f8

Browse files
committed
readme for tests
1 parent fd44453 commit a4bd2f8

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

Examples/CodePushDemoApp/CodePushDemoApp.xcodeproj/project.pbxproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@
408408
isa = PBXProject;
409409
attributes = {
410410
LastUpgradeCheck = 0610;
411-
ORGANIZATIONNAME = Facebook;
411+
ORGANIZATIONNAME = Microsoft;
412412
TargetAttributes = {
413413
00E356ED1AD99517003FC87E = {
414414
CreatedOnToolsVersion = 6.2;

Examples/CodePushDemoApp/CodePushDemoAppTests/ApplyUpdateTests.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL(^)(UIView *view))test
5252
#pragma mark Logic Tests
5353
- (void)testDownloadAndApplyUpdate
5454
{
55-
56-
5755
NSString *sanitizedAppName = [app stringByReplacingOccurrencesOfString:@"/" withString:@"-"];
5856
sanitizedAppName = [sanitizedAppName stringByReplacingOccurrencesOfString:@"\\" withString:@"-"];
5957
NSURL* scriptURL;
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
Test Cases
3+
---
4+
* QueryUpdateTests
5+
Tests the functionality of querying for new app updates via the SDK
6+
* testNoRemotePackage - Checks that when the remote server has no update packages available, CodePushSdk.queryUpdate does not return a new package nor throw an error.
7+
* testNoRemotePackageWithSameAppVersion - Checks that when the remote server has an update with a different appVersion, the CodePushSdk.queryUpdate does not return a new package nor throw an error.
8+
* testFirstUpdate - Checks that when there is no current package (for example, the current build is a fresh install from the app store) and the remote server has a new package, CodePushSdk.queryUpdate returns that new package without throwing an error.
9+
* testNewUpdate - Checks that when the remote server has a new package with a different package hash and same version as the current package, CodePushSdk.queryUpdate returns that new package without throwing an error.
10+
* testSamePackage - Checks that when the remote server has a package that is identical to the current package, CodePushSdk.queryUpdate does not return a new package nor throw an error.
11+
12+
* ApplyUpdateTests
13+
Tests the functionality of installing new app updates downloaded from the server via the SDK
14+
* testDownloadAndApplyUpdate - Queries for a new update, downloads it and then verifies that from the UI that the new update has been installed.

0 commit comments

Comments
 (0)