Greetings!
I recently completed a somewhat sprawling plugin for Caddy, and I’m looking at test coverage.
Most of my integration tests end up firing up Caddy by essentially calling Main()
. This has a few downsides, but the major upside is that I can use the debugger in any part of the plugin while troubleshooting the integrations tests.
Unfortunately - coverage doesn’t seem to work properly in that context (i.e. the Provision
, Validate
methods show up as uncovered when they are at the very least called). Is there a way to remedy this?