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

Update coverage configs #5875

Merged
merged 2 commits into from
Jun 5, 2023
Merged

Update coverage configs #5875

merged 2 commits into from
Jun 5, 2023

Conversation

Aadesh-Baral
Copy link
Contributor

This PR performs following modifications:

  • Adds __pypackages__ in list of directories that needs be excluded while generating coverage report.
  • Modifies alias of pdm script to run command coverage -m unittest discover to coverage-discover, so that other coverage commands are executable using pdm run coverage <option>

…age.

-------------------
There are multiple options that can be executed using coverage which can be used as "pdm run coverage <options>". But by setting coverage as alias in pdm script these options were no longer excecutable since it considers the coverage as alias for command "coverage run -m unittest discover" instead of module.
@sonarcloud
Copy link

sonarcloud bot commented Jun 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@Aadesh-Baral Aadesh-Baral merged commit ed21414 into develop Jun 5, 2023
8 checks passed
@Aadesh-Baral Aadesh-Baral deleted the fix/coverage-exclusions branch June 5, 2023 07:58
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.

None yet

1 participant