Can I run an XCTest suite multiple times?

前端 未结 6 1707
盖世英雄少女心
盖世英雄少女心 2021-01-12 05:37

Is it possible to have Xcode run your unit tests multiple times?

I had an issue in several unit tests that caused intermittent failures. Now that I think I\

6条回答
  •  情歌与酒
    2021-01-12 06:37

    for me it works in swift

        override func invokeTest() {
        for time in 0...15 {
            print("this test is being invoked: \(time) times")
            super.invokeTest()
        }
    }
    

提交回复
热议问题