コードカバレッジとの付き合い方を知ってテストを書く

 コードカバレッジとの付き合い方を知ってテストを書く

Daiki Katayama

April 10, 2019

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

21 slides
  1. ͳͥεςʔτϝϯτΧόϨοδ ͚ͩͳͷ͔ • AppleͷυΩϡϝϯτʹ͸
 ʮCode coverage in Xcode is a

    testing option supported by LLVMʯ ➡ ΧόϨοδऔಘ͸LLVMͷػೳ https://developer.apple.com/library/archive/documentation/DeveloperTools/ Conceptual/testing_with_xcode/chapters/07-code_coverage.html
  2. ClangͷυΩϡϝϯτʹ͸ҎԼͷ 4͕ͭܭଌͰ͖Δͱॻ͍ͯ͋Δ • Function coverage • Instantiation coverage • Line

    coverage • Region coverage ClangͰ৭ʑऔΕΔͳΒಉ͡LLVM࢖͏SwiftͰ΋औΕͳ͍͔ͳ… https://clang.llvm.org/docs/SourceBasedCodeCoverage.html

More Decks by Daiki Katayama

Other Decks in Programming