Skip to content

swizzlr/lux

Repository files navigation

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published