LiveLikeGiphyChallengeUITests.swift 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // LiveLikeGiphyChallengeUITests.swift
  3. // LiveLikeGiphyChallengeUITests
  4. //
  5. //
  6. import XCTest
  7. class LiveLikeGiphyChallengeUITests: XCTestCase {
  8. override func setUpWithError() throws {
  9. // Put setup code here. This method is called before the invocation of each test method in the class.
  10. // In UI tests it is usually best to stop immediately when a failure occurs.
  11. continueAfterFailure = false
  12. // 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.
  13. }
  14. override func tearDownWithError() throws {
  15. // Put teardown code here. This method is called after the invocation of each test method in the class.
  16. }
  17. func testExample() throws {
  18. // UI tests must launch the application that they test.
  19. let app = XCUIApplication()
  20. app.launch()
  21. // Use recording to get started writing UI tests.
  22. // Use XCTAssert and related functions to verify your tests produce the correct results.
  23. }
  24. func testLaunchPerformance() throws {
  25. if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) {
  26. // This measures how long it takes to launch your application.
  27. measure(metrics: [XCTApplicationLaunchMetric()]) {
  28. XCUIApplication().launch()
  29. }
  30. }
  31. }
  32. }