我有以下测试文件。奇怪的是,当我点击CMD + U时,测试运行得很好但是没有迹象表明该文件是测试文件(即代码左侧没有钻石)。
import XCTest
@testable import Saba_Center
class SabaCenterTests: XCTestCase {
var residentAlimVC: ResidentAlimViewController!
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
let storyboard = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle())
vc = storyboard.instantiateInitialViewController() as! ResidentAlimViewController
_ = vc.view
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
}
答案 0 :(得分:0)
您没有任何测试要测试。你需要做一个像你脚手架的测试。
e.g:
<div id="header">
<a href="John McAfee.html"><img id="headerImage" src="./images/headerText.png" alt="Logo" /></a>
<img id="headerPoster" src="./images/mcAfeeposter.png" alt="McAfee Poster" />
<ul id="nav">
<li><a href="Background.html">Background</a></li>
<li><a href="Mission.html">Mission</a></li>
<li><a href="Agenda.html">Agenda</a></li>
<li><a href="Gallery.html">Gallery</a></li>
</ul>
<div id="headerText"> <p> LIBERTY PRIVACY TECHNOLOGY AMERICA </p></div>
<!--<div id="headerButton"> SECURE YOUR FUTURE </div>-->
</div> <!-- End of header div-->