Adding code coverage to an enaml app

October 14, 2021

To get code coverage with enaml install the enaml-coverage-plugin.

Assuming you're using pytest, and have pytest-cov plugin, create a .coveragerc file with the following

[run]
plugins: enaml_coverage_plugin

Then run pytest tests --cov yourapp --cov-report html and you'll see the coverage report for the enaml files!

Thanks Matthieu!