ViM plug-in to visualize your code coverage in real time line-by-line.

example-umbrella.py 347B

12345678910111213141516171819
  1. #!/usr/bin/python
  2. import coverage
  3. output = ""
  4. cov = coverage.coverage()
  5. cov.load()
  6. for a in [cov.analysis2("*")]:
  7. output += "{0};{1};{2};{3}\n".format(
  8. a[0],
  9. ",".join(str(x) for x in a[1]),
  10. "",
  11. ",".join(str(x) for x in a[3]))
  12. f = open(".umbrella-coverage", "w")
  13. f.write(output)
  14. f.close()