You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
//
// I n d i e M u s i c U I T e s t s . s w i f t
// I n d i e M u s i c U I T e s t s
//
// C r e a t e d b y W e n L e i o n 2 0 2 3 / 1 1 / 6 .
//
import XCTest
final class IndieMusicUITests : XCTestCase {
override func setUpWithError ( ) throws {
// P u t s e t u p c o d e h e r e . T h i s m e t h o d i s c a l l e d b e f o r e t h e i n v o c a t i o n o f e a c h t e s t m e t h o d i n t h e c l a s s .
// I n U I t e s t s i t i s u s u a l l y b e s t t o s t o p i m m e d i a t e l y w h e n a f a i l u r e o c c u r s .
continueAfterFailure = false
// I n U I t e s t s i t ’ s i m p o r t a n t t o s e t t h e i n i t i a l s t a t e - s u c h a s i n t e r f a c e o r i e n t a t i o n - r e q u i r e d f o r y o u r t e s t s b e f o r e t h e y r u n . T h e s e t U p m e t h o d i s a g o o d p l a c e t o d o t h i s .
}
override func tearDownWithError ( ) throws {
// P u t t e a r d o w n c o d e h e r e . T h i s m e t h o d i s c a l l e d a f t e r t h e i n v o c a t i o n o f e a c h t e s t m e t h o d i n t h e c l a s s .
}
func testExample ( ) throws {
// U I t e s t s m u s t l a u n c h t h e a p p l i c a t i o n t h a t t h e y t e s t .
let app = XCUIApplication ( )
app . launch ( )
// U s e X C T A s s e r t a n d r e l a t e d f u n c t i o n s t o v e r i f y y o u r t e s t s p r o d u c e t h e c o r r e c t r e s u l t s .
}
func testLaunchPerformance ( ) throws {
if #available ( macOS 10.15 , iOS 13.0 , tvOS 13.0 , watchOS 7.0 , * ) {
// T h i s m e a s u r e s h o w l o n g i t t a k e s t o l a u n c h y o u r a p p l i c a t i o n .
measure ( metrics : [ XCTApplicationLaunchMetric ( ) ] ) {
XCUIApplication ( ) . launch ( )
}
}
}
}