使用XCTest。测试测试结果保存在路径的TestSummaries.plist中:
/Users/smriti/Library/Developer/Xcode/DerivedData/Project_name/Logs/Test/
谁能告诉如何从上面的路径读取 TestSummaries.plist 文件的内容?
需要从上述文件中捕获结果数据(错误消息、测试用例、行号)并在函数tearDown()中写入 excel
尝试使用
NSSearchPathForDirectoriesInDomains(.AllLibrariesDirectory, .AllDomainsMask, true) -> 没有给出想要的路径。
NSBundle.mainBundle 为“Project_name/Build/Products/”而不是“/Project_name/Logs/Test/”提供路径