KulexiuForTeacherUITests.m 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. //
  2. // KulexiuForTeacherUITests.m
  3. // KulexiuForTeacherUITests
  4. //
  5. // Created by Kyle on 2022/3/16.
  6. //
  7. #import <XCTest/XCTest.h>
  8. @interface KulexiuForTeacherUITests : XCTestCase
  9. @end
  10. @implementation KulexiuForTeacherUITests
  11. - (void)setUp {
  12. // Put setup code here. This method is called before the invocation of each test method in the class.
  13. // In UI tests it is usually best to stop immediately when a failure occurs.
  14. self.continueAfterFailure = NO;
  15. // 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.
  16. }
  17. - (void)tearDown {
  18. // Put teardown code here. This method is called after the invocation of each test method in the class.
  19. }
  20. - (void)testExample {
  21. // UI tests must launch the application that they test.
  22. XCUIApplication *app = [[XCUIApplication alloc] init];
  23. [app launch];
  24. // Use recording to get started writing UI tests.
  25. // Use XCTAssert and related functions to verify your tests produce the correct results.
  26. }
  27. - (void)testLaunchPerformance {
  28. if (@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *)) {
  29. // This measures how long it takes to launch your application.
  30. [self measureWithMetrics:@[[[XCTApplicationLaunchMetric alloc] init]] block:^{
  31. [[[XCUIApplication alloc] init] launch];
  32. }];
  33. }
  34. }
  35. @end