azdev 0.1.68__tar.gz → 0.1.70__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {azdev-0.1.68 → azdev-0.1.70}/HISTORY.rst +8 -0
- {azdev-0.1.68/azdev.egg-info → azdev-0.1.70}/PKG-INFO +9 -1
- {azdev-0.1.68 → azdev-0.1.70}/azdev/__init__.py +1 -1
- {azdev-0.1.68 → azdev-0.1.70}/azdev/help.py +7 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/cmdcov/cmdcov.py +0 -57
- {azdev-0.1.68 → azdev-0.1.70/azdev.egg-info}/PKG-INFO +9 -1
- {azdev-0.1.68 → azdev-0.1.70}/LICENSE +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/MANIFEST.in +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/README.md +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/README.rst +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/__main__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/commands.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/completer.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/config/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/config/cli.flake8 +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/config/cli_pylintrc +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/config/ext.flake8 +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/config/ext_pylintrc +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/HISTORY.rst +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/README.rst +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/_client_factory.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/_help.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/_params.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/_validators.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/azext_metadata.json +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/blank__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/commands.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/custom.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/module__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/pkg_declare__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/setup.cfg +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/setup.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/mod_templates/test_service_scenario.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/cmdcov/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/cmdcov/_macros.j2 +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/cmdcov/component.css +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/cmdcov/component.js +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/cmdcov/favicon.ico +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/cmdcov/index.j2 +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/cmdcov/index2.j2 +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/cmdcov/module.j2 +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/code_gen.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/command_change/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/command_change/custom.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/command_change/util.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/constant.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/extensions/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/extensions/util.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/extensions/version_upgrade.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/help/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/help/refdoc/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/help/refdoc/conf.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/legal.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/linter.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/pylint_checkers/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/pylint_checkers/show_command.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/rule_decorators.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/rules/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/rules/ci_exclusions.yml +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/rules/command_coverage_rules.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/rules/command_group_rules.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/rules/command_rules.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/rules/help_rules.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/rules/linter_exclusions.yml +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/rules/parameter_rules.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/linter/util.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/performance.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/pypi.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/python_sdk.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/regex.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/resource.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/setup.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/statistics/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/statistics/util.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/style.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/testtool/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/testtool/incremental_strategy.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/testtool/profile_context.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/operations/testtool/pytest_runner.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/params.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/transformers.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/__init__.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/command.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/config.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/const.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/display.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/git_util.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/path.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/pypi.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/testing.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev/utilities/tools.py +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev.egg-info/SOURCES.txt +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev.egg-info/dependency_links.txt +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev.egg-info/entry_points.txt +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev.egg-info/requires.txt +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/azdev.egg-info/top_level.txt +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/pyproject.toml +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/setup.cfg +0 -0
- {azdev-0.1.68 → azdev-0.1.70}/setup.py +0 -0
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Release History
|
|
4
4
|
===============
|
|
5
|
+
0.1.70
|
|
6
|
+
++++++
|
|
7
|
+
* Fix cmdcov issue(#455): remove tested_command.txt reference.
|
|
8
|
+
|
|
9
|
+
0.1.69
|
|
10
|
+
++++++
|
|
11
|
+
* `azdev command-change tree-export`: Add command help message.
|
|
12
|
+
|
|
5
13
|
0.1.68
|
|
6
14
|
++++++
|
|
7
15
|
* `azdev command-change tree-export`: Add new command to support export command tree of CLI modules.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: azdev
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.70
|
|
4
4
|
Summary: Microsoft Azure CLI Developer Tools
|
|
5
5
|
Home-page: https://github.com/Azure/azure-cli-dev-tools
|
|
6
6
|
Author: Microsoft Corporation
|
|
@@ -145,6 +145,14 @@ License
|
|
|
145
145
|
|
|
146
146
|
Release History
|
|
147
147
|
===============
|
|
148
|
+
0.1.70
|
|
149
|
+
++++++
|
|
150
|
+
* Fix cmdcov issue(#455): remove tested_command.txt reference.
|
|
151
|
+
|
|
152
|
+
0.1.69
|
|
153
|
+
++++++
|
|
154
|
+
* `azdev command-change tree-export`: Add command help message.
|
|
155
|
+
|
|
148
156
|
0.1.68
|
|
149
157
|
++++++
|
|
150
158
|
* `azdev command-change tree-export`: Add new command to support export command tree of CLI modules.
|
|
@@ -197,6 +197,13 @@ helps['command-change meta-diff'] = """
|
|
|
197
197
|
text: azdev statistics meta-diff --base-meta-file fileA --diff-meta-file fileB --only-break
|
|
198
198
|
"""
|
|
199
199
|
|
|
200
|
+
helps['command-change tree-export'] = """
|
|
201
|
+
short-summary: Export Command Tree for CLI modules or extensions.
|
|
202
|
+
examples:
|
|
203
|
+
- name: Export command tree for CLI modules
|
|
204
|
+
text: azdev command-change tree-export CLI --output-file command_tree.json
|
|
205
|
+
"""
|
|
206
|
+
|
|
200
207
|
helps['perf'] = """
|
|
201
208
|
short-summary: Commands to test CLI performance.
|
|
202
209
|
"""
|
|
@@ -58,7 +58,6 @@ class CmdcovManager:
|
|
|
58
58
|
self.enable_cli_own = enable_cli_own
|
|
59
59
|
self.all_commands = {m: [] for m in self.selected_mod_names}
|
|
60
60
|
self.all_tested_commands = {m: [] for m in self.selected_mod_names}
|
|
61
|
-
self.all_live_commands = []
|
|
62
61
|
self.all_untested_commands = {}
|
|
63
62
|
self.command_test_coverage = {'Total': [0, 0, 0]}
|
|
64
63
|
self.date = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())
|
|
@@ -73,8 +72,6 @@ class CmdcovManager:
|
|
|
73
72
|
self._get_all_tested_commands_from_regex()
|
|
74
73
|
self._get_all_tested_commands_from_record()
|
|
75
74
|
self._run_command_test_coverage()
|
|
76
|
-
self._get_all_tested_commands_from_live()
|
|
77
|
-
self._run_command_test_coverage_enhance()
|
|
78
75
|
html_file = self._render_html()
|
|
79
76
|
if self.enable_cli_own:
|
|
80
77
|
command_test_coverage = {k: v for k, v in self.command_test_coverage.items() if k in CLI_OWN_MODULES}
|
|
@@ -191,10 +188,6 @@ class CmdcovManager:
|
|
|
191
188
|
cmd = command + ' ' + argument
|
|
192
189
|
self.all_tested_commands[self.selected_mod_names[idx]].append(cmd)
|
|
193
190
|
|
|
194
|
-
def _get_all_tested_commands_from_live(self):
|
|
195
|
-
with open(os.path.join(self.cmdcov_path, 'tested_command.txt'), 'r') as f:
|
|
196
|
-
self.all_live_commands = f.readlines()
|
|
197
|
-
|
|
198
191
|
def _run_command_test_coverage(self):
|
|
199
192
|
"""
|
|
200
193
|
all_commands: All commands that need to be test
|
|
@@ -247,56 +240,6 @@ class CmdcovManager:
|
|
|
247
240
|
logger.warning(self.command_test_coverage)
|
|
248
241
|
return self.command_test_coverage
|
|
249
242
|
|
|
250
|
-
def _run_command_test_coverage_enhance(self):
|
|
251
|
-
"""
|
|
252
|
-
all_untest_commands: {[module]:[],}
|
|
253
|
-
all_tested_commands_from_file: []
|
|
254
|
-
command_test_coverage: {[module: [test, untested, pct]
|
|
255
|
-
module: vm
|
|
256
|
-
percentage: xx.xxx%
|
|
257
|
-
"""
|
|
258
|
-
import ast
|
|
259
|
-
total_tested = 0
|
|
260
|
-
total_untested = 0
|
|
261
|
-
# pylint: disable=too-many-nested-blocks
|
|
262
|
-
for module, untested_commands in self.all_untested_commands.items():
|
|
263
|
-
for cmd_idx, command in enumerate(untested_commands):
|
|
264
|
-
exist_flag = False
|
|
265
|
-
prefix = command.rsplit('[', maxsplit=1)[0]
|
|
266
|
-
opt_list = ast.literal_eval('[' + command.rsplit('[', maxsplit=1)[1]) if self.level == 'argument' \
|
|
267
|
-
else []
|
|
268
|
-
for cmd in self.all_live_commands:
|
|
269
|
-
if prefix in cmd:
|
|
270
|
-
if self.level == 'argument':
|
|
271
|
-
for opt in opt_list:
|
|
272
|
-
if opt in cmd:
|
|
273
|
-
self.command_test_coverage[module][0] += 1
|
|
274
|
-
untested_commands.pop(cmd_idx)
|
|
275
|
-
exist_flag = True
|
|
276
|
-
if exist_flag:
|
|
277
|
-
break
|
|
278
|
-
else:
|
|
279
|
-
self.command_test_coverage[module][0] += 1
|
|
280
|
-
untested_commands.pop(cmd_idx)
|
|
281
|
-
exist_flag = True
|
|
282
|
-
if exist_flag:
|
|
283
|
-
break
|
|
284
|
-
if exist_flag:
|
|
285
|
-
break
|
|
286
|
-
try:
|
|
287
|
-
self.command_test_coverage[module][1] = len(untested_commands)
|
|
288
|
-
self.command_test_coverage[module][2] = f'''{self.command_test_coverage[module][0] /
|
|
289
|
-
(self.command_test_coverage[module][0] +
|
|
290
|
-
self.command_test_coverage[module][1]):.3%}'''
|
|
291
|
-
except ZeroDivisionError:
|
|
292
|
-
self.command_test_coverage[module] = [0, 0, 'N/A']
|
|
293
|
-
total_tested += self.command_test_coverage[module][0] if self.command_test_coverage[module] else 0
|
|
294
|
-
total_untested += self.command_test_coverage[module][1] if self.command_test_coverage[module] else 0
|
|
295
|
-
self.command_test_coverage['Total'][0] = total_tested
|
|
296
|
-
self.command_test_coverage['Total'][1] = total_untested
|
|
297
|
-
self.command_test_coverage['Total'][2] = f'{total_tested / (total_tested + total_untested):.3%}'
|
|
298
|
-
logger.warning(self.command_test_coverage)
|
|
299
|
-
|
|
300
243
|
def _render_html(self):
|
|
301
244
|
"""
|
|
302
245
|
:return: Return a HTML string
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: azdev
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.70
|
|
4
4
|
Summary: Microsoft Azure CLI Developer Tools
|
|
5
5
|
Home-page: https://github.com/Azure/azure-cli-dev-tools
|
|
6
6
|
Author: Microsoft Corporation
|
|
@@ -145,6 +145,14 @@ License
|
|
|
145
145
|
|
|
146
146
|
Release History
|
|
147
147
|
===============
|
|
148
|
+
0.1.70
|
|
149
|
+
++++++
|
|
150
|
+
* Fix cmdcov issue(#455): remove tested_command.txt reference.
|
|
151
|
+
|
|
152
|
+
0.1.69
|
|
153
|
+
++++++
|
|
154
|
+
* `azdev command-change tree-export`: Add command help message.
|
|
155
|
+
|
|
148
156
|
0.1.68
|
|
149
157
|
++++++
|
|
150
158
|
* `azdev command-change tree-export`: Add new command to support export command tree of CLI modules.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|