1 Star 0 Fork 0

郑永生 / Cura

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
run_coverage.py 464 Bytes
Copy Edit Raw Blame History
import pytest
from pathlib import Path
# Small helper script to run the coverage of main code & all plugins
path = Path("plugins")
args = ["--cov" ,"cura" , "--cov-report", "html"]
all_paths = []
for p in path.glob('**/*'):
if p.is_dir():
if p.name in ["__pycache__", "tests"]:
continue
args.append("--cov")
args.append(str(p))
all_paths.append(str(p))
for path in all_paths:
args.append(path)
args.append(".")
args.append("-x")
pytest.main(args)
1
https://gitee.com/Shine6Z/Cura.git
git@gitee.com:Shine6Z/Cura.git
Shine6Z
Cura
Cura
master

Search