chmp / ipytest

Pytest in IPython notebooks.
MIT License
314 stars 17 forks source link

Simplify using coverage plugin `ipytest.cov` #112

Closed chmp closed 6 months ago

chmp commented 6 months ago

See comment here:

The %%file cell magic can be used to create files like .coveragerc from a notebook.

%%file .coveragerc
[run]
plugins =
    ipytest.cov

Would an ipytest.generate_coveragerc() or similar be too much? or Just autoconfig(coverage=True) or something?

Comment: something like autoconfig(coverage=True) would be really cool. I would prefer to inject the plugin programitcally, though.

chmp commented 6 months ago

Started work on a first draft here: #114

chmp commented 6 months ago

Implemented in #114