Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pytest when source coverage is not used #721

Merged
merged 1 commit into from
May 22, 2024

Conversation

grouigrokon
Copy link
Contributor

The source coverage option may not be defined when running the tests manually. The option existence should be checked before trying to get it.

The coverage package dependency was also missing from the pyproject.toml.

Closes #720

pyproject.toml Outdated Show resolved Hide resolved
src/e3/pytest.py Outdated Show resolved Hide resolved
src/e3/pytest.py Outdated Show resolved Hide resolved
The source coverage option may not be defined when running the tests
manually. The option existence should be checked before trying to get
it.

Closes AdaCore#720
@grouigrokon grouigrokon merged commit f28ba3a into AdaCore:master May 22, 2024
11 checks passed
@grouigrokon grouigrokon deleted the fix-pytest-without-coverage branch May 22, 2024 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pytest may not run with coverage
2 participants