[CICD] Add CLI Command Test Coverage
Description:
azdev cmdcovatuo generate CLI Command Test Coverage Report about every module to track and improve command-level test coverage.azdev linteradd rules to detect any missing test cases in every pull request and continuously improve code quality.
Examples
Check all CLI modules command test coverage.
azdev cmdcov CLI
Check one or serveral modules command test coverage.
azdev cmdcov vm storage
Check CLI modules command argument test coverage.
azdev cmdcov CLI --level argument
Add linter rules to check every PR
azdev linter --rule-types command_test_coverage --repo=repo_path --src=src_branch --tgt=target_branch
Report:

Hey is this currently functional? When I run any azdev cmdcov command (such as azdev cmdcov -h), I get the following exception:
ModuleNotFoundError: No module named 'azdev.operations.cmdcov'
What command are you using to build azdev? I'm just doing a pip install . in the azdev repo, which worked for me on the dev branch
Hey is this currently functional? When I run any
azdev cmdcovcommand (such asazdev cmdcov -h), I get the following exception:ModuleNotFoundError: No module named 'azdev.operations.cmdcov'What command are you using to buildazdev? I'm just doing apip install .in the azdev repo, which worked for me on the dev branch
@StrawnSC, This feature currently is not functional, we will release a new version for it. You can try it by replace the azdev code with this branch.
@wangzelin007, Do we support adding --level for specific modules such as azdev cmdcov storage --level argument?
@wangzelin007, Do we support adding
--levelfor specific modules such asazdev cmdcov storage --level argument?
Yes~
General guideline: Avoid to release a new version for the package when there is any changes.
General guideline: Avoid to release a new version for the package when there is any changes.
Sure, I will double check. Can you recommend a path in azcli repo ?
/azp run
Azure Pipelines successfully started running 2 pipeline(s).
Avoid to release a new version for the package when there is any changes.
Move CLI command test coverage config to azure-cli repo:https://github.com/Azure/azure-cli/pull/25441
/azp run
Azure Pipelines successfully started running 2 pipeline(s).