How can I run XCTest for a swift application from the command line?

后端 未结 2 650
有刺的猬
有刺的猬 2020-12-29 02:28

I want to test drive some Swift examples using XCTest from the command line if possible.

import XCTest

class LeapTest : XCTestCase {

    func testVanillaL         


        
2条回答
  •  一个人的身影
    2020-12-29 03:18

    I think the issue is you have your test.swift file under the main project's target membership. Make sure your swift test files belong to the Test target only.

提交回复
热议问题