- Given swift file
- Filter to lines that contain statements
- Precede first statement of lines with
println("co.swizzlr.worstthing: __FILE__ // __LINE__");
- Record all occurrences of println insertion
- Build special version of module under test with above modifications
- Run test suite against module
- Record output
- Filter by
co.swizzlr.worstthing
- Parse line occurrences
- For each line generate
null
if no println statement, or anint
displaying how many times the statement was triggered.
- Take above output, profit.