swizzlr / lux

[RETIRED] Code coverage for swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Instrument program flow

  1. Given swift file
  2. Filter to lines that contain statements
  3. Precede first statement of lines with println("co.swizzlr.worstthing: __FILE__ // __LINE__");
  4. Record all occurrences of println insertion

Generate coverage output

  1. Build special version of module under test with above modifications
  2. Run test suite against module
  3. Record output
  4. Filter by co.swizzlr.worstthing
  5. Parse line occurrences
  6. For each line generate null if no println statement, or an int displaying how many times the statement was triggered.

Submit to coveralls

  1. Take above output, profit.

About

[RETIRED] Code coverage for swift


Languages

Language:Swift 85.9%Language:Shell 11.8%Language:C++ 1.2%Language:Awk 1.1%