mirror of
https://github.com/aljazceru/plugins.git
synced 2025-12-19 14:14:20 +01:00
pytest: Get coverage inside and outside plugins working
This commit is contained in:
10
sitecustomize.py
Normal file
10
sitecustomize.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import coverage
|
||||
cov = coverage.process_startup()
|
||||
|
||||
if cov is not None:
|
||||
import atexit
|
||||
def stop():
|
||||
cov.stop()
|
||||
cov.save()
|
||||
|
||||
atexit.register(stop)
|
||||
Reference in New Issue
Block a user