How to update coverage in pybuilder to igrore any module (i.e. run.py in flask) ?

  • To make Coverage runing from PyBuilder to igrone any module:

(for example run.py in Flask that shold not be tested) add the following in build.py (part of pybuilder project):


@init
def set_properties(project):
    project.set_property("coverage_exceptions",['run',])

The list could be expanded with other modules as needed.

  • DONE!

Leave a Reply