產生 Swift 測試代碼覆蓋信息的工具:SwiftCov

jopen 9年前發布 | 8K 次閱讀 SwiftCov 測試工具

SwiftCov 是一個可以產生 Swift 測試代碼覆蓋信息的工具。

用法:

$ swiftcov helpAvailable commands:

   generate   Generate test code coverage files for your Swift tests   
   help       Display general or command-specific help
   version    Display the current version of SwiftCov

怎樣運行實例項目:

$ make install
$ cd Examples/ExampleFramework/
$ swiftcov generate --output coverage_ios \
  xcodebuild test \
  -project ExampleFramework.xcodeproj \
  -scheme ExampleFramework-iOS \
  -sdk iphonesimulator \
  -configuration Release

項目主頁:http://www.baiduhome.net/lib/view/home/1441786530914

 本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
 轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
 本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!