TestGIFUITests.m 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // TestGIFUITests.m
  3. // TestGIFUITests
  4. //
  5. // Created by huangyirong on 2020/6/2.
  6. // Copyright © 2020 Sogou. All rights reserved.
  7. //
  8. #import <XCTest/XCTest.h>
  9. @interface TestGIFUITests : XCTestCase
  10. @end
  11. @implementation TestGIFUITests
  12. - (void)setUp {
  13. // Put setup code here. This method is called before the invocation of each test method in the class.
  14. // In UI tests it is usually best to stop immediately when a failure occurs.
  15. self.continueAfterFailure = NO;
  16. // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
  17. }
  18. - (void)tearDown {
  19. // Put teardown code here. This method is called after the invocation of each test method in the class.
  20. }
  21. - (void)testExample {
  22. // UI tests must launch the application that they test.
  23. XCUIApplication *app = [[XCUIApplication alloc] init];
  24. [app launch];
  25. // Use recording to get started writing UI tests.
  26. // Use XCTAssert and related functions to verify your tests produce the correct results.
  27. }
  28. - (void)testLaunchPerformance {
  29. if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, *)) {
  30. // This measures how long it takes to launch your application.
  31. [self measureWithMetrics:@[XCTOSSignpostMetric.applicationLaunchMetric] block:^{
  32. [[[XCUIApplication alloc] init] launch];
  33. }];
  34. }
  35. }
  36. @end