Ios 使用TDD在Swift中进行性能测试

Ios 使用TDD在Swift中进行性能测试,ios,swift,testing,tdd,performance-testing,Ios,Swift,Testing,Tdd,Performance Testing,在Swift中学习Test-Driven Development。我在“ProjectNameTests”组中创建了一个类,它是XCTestCase的子类 我想对这些方法进行性能测试 func testPerformanceExample() { // This is an example of a performance test case. self.measureBlock() { // Put the code you want to measure th

Swift
中学习
Test-Driven Development
。我在“ProjectNameTests”组中创建了一个类,它是
XCTestCase
的子类

我想对这些方法进行性能测试

func testPerformanceExample() {
    // This is an example of a performance test case.
    self.measureBlock() {
        // Put the code you want to measure the time of here.
        for i in 1...100000{

            println("ok i need to know the time for execution")


        }
    }
}
我想知道执行
for
循环的时间。我运行这个项目,转到Product->Perform Action->Test而不构建

我可以看到执行时间为3.50秒,但当我尝试设置基线时,单击笔划区域,如下图所示:

我也收到了警告

是否要更新所有上所有测试的基线值 设备?您将有机会在下次使用时查看更改 提交到源代码管理

现在,当我单击“更新”时,错误如下:

我如何将我的特定方法的时间基线设置为

以下是我的测试项目:

能否检查基本功能测试文件目标成员资格是否包括您的测试目标。您应该能够通过选择文件并导航到文件检查器(目标成员身份)来检查此问题。

感谢您的回答……我仔细检查了……完成了……我已上载了我的项目……请查看我的问题,我只是尝试了相同的步骤,并且能够更新基线。你刚刚在我创建的演示项目中尝试了吗?你使用的是哪个xcode版本?是的,相同的单元测试项目,xcode版本是6.4。我刚刚下载了xcode 6.4并进行了测试。一切都很好。我的缺点是使用了xcode 6.3,尽管其中没有什么bug:)谢谢
func testPerformanceExample() {
    // This is an example of a performance test case.
    self.measureBlock() {
        // Put the code you want to measure the time of here.
        for i in 1...100000{

            println("ok i need to know the time for execution")


        }
    }
}