テストクラスをNewするとsetUpWithError()が含まれている。 ここでメンバ変数を初期化して準備しようとするとエラーでコンパイルできない。 メインのプロジェクト(Test)でAというクラスを定義 import Foundation class A { func foo() -> Int { return 0 } } このテストでメンバ変数aを追加 import XCTest @testable import Test final class ATests: XCTestCase { private var a: A override func setUpWithError() th…