Skip to content
Myr

✅ Report coverage in XML (#146)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* ✅ Report XML Coverate to support GitHub Actions * 🙈 Add coverage report to .gitignore * ✅ Add custom testing .zshrc logic for coverage

authored by Sebastián Ramírez · committed by GitHub · parent cef7fee · Browse files · 3 files+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−1 removed

  • tests:+2 added−0 removed
  • other:+2 added−1 removed

3 files+4 added−1 removed

modified:scripts/test.sh+1 added-1 removed
modified:tests/test_completion/test_completion_install.py+2 added
63 unmodified lines
6465def test_completion_install_zsh():66 completion_path: Path = Path.home() / ".zshrc"67 text = ""68 if not completion_path.is_file(): # pragma: nocover69 completion_path.write_text('echo "custom .zshrc"')70 if completion_path.is_file():71 text = completion_path.read_text()72 result = subprocess.run(73 ["coverage", "run", mod.__file__, "--install-completion", "zsh"],
76 unmodified lines
modified:.gitignore+1 added
9 unmodified lines
10site11.coverage12htmlcov13.pytest_cache14coverage.xml