Skip to content

Commit

Permalink
1. Code cleanup in test harness.
Browse files Browse the repository at this point in the history
2. Add code coverage.
  • Loading branch information
MaximAlien committed Mar 4, 2019
1 parent 89a0ec2 commit 5366ba1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 36 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ script:
-project ARPlayer.xcodeproj
-scheme ARPlayer
CODE_SIGNING_REQUIRED=NO
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
GCC_GENERATE_TEST_COVERAGE_FILES=YES

xcodebuild clean test
-sdk iphonesimulator
-project ARPlayer.xcodeproj
-scheme ARPlayerTestHarness
-destination 'platform=iOS Simulator,name=iPhone XS,OS=12.1'
CODE_SIGNING_REQUIRED=NO
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=YES
GCC_GENERATE_TEST_COVERAGE_FILES=YES

after_success:
- bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
codeCoverageEnabled = "YES"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
Expand Down
2 changes: 1 addition & 1 deletion ARPlayerTestHarness/AppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2019 Maxim Makhun. All rights reserved.
//

#import <UIKit/UIKit.h>
@import UIKit;

@interface AppDelegate : UIResponder <UIApplicationDelegate>

Expand Down
31 changes: 1 addition & 30 deletions ARPlayerTestHarness/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,38 +14,9 @@ @interface AppDelegate ()

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Override point for customization after application launch.
return YES;
}


- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}


- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}


- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}


- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}


- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
return YES;
}


@end
2 changes: 1 addition & 1 deletion ARPlayerTestHarness/ViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2019 Maxim Makhun. All rights reserved.
//

#import <UIKit/UIKit.h>
@import UIKit;

@interface ViewController : UIViewController

Expand Down
2 changes: 0 additions & 2 deletions ARPlayerTestHarness/ViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ @implementation ViewController

- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
}


@end

0 comments on commit 5366ba1

Please sign in to comment.