Add targets into main function
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- cli, testing-qa
Research direction
Start at the main function behind python -m ansys.tools.example_coverage and trace how command-line options are parsed. Define completion as global and per-module error and warning thresholds producing the requested outcomes; the optional configuration-file behavior still needs scope and a project decision.
Written by the indexing model from the issue text.
Description
We need a way of raising an exception and warning when thresholds aren't met (global or by module).
For example:
python -m ansys.tools.example_coverage -f "path_to_package" --error_thresh 50 --warn_thresh 80
This will raise an error if global coverage is below 50% and a warning if below 80%.
Could also implement in a modules by module basis:
python -m ansys.tools.example_coverage -f "path_to_package" --error_thresh_module 50 --warn_thresh_module 80
Consider having a configuration file to make this easier to configure (ignoring regex, etc).
- Dominant language
- Python
- Stars
- 3
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from ansys/example-coverage
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
All issues in ansys/example-coverage
Similar issues
-
bug confirmed issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
open-webui/open-webui#30750 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
OpenwaterHealth/openmotion-bloodflow-app#604 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
good first issue
Difficulty 1/5 Under an hour Newbie friendliness 90/100