azure-cli-dev-tools icon indicating copy to clipboard operation
azure-cli-dev-tools copied to clipboard

azdev test doesn't work

Open zackliu opened this issue 4 years ago • 0 comments

When I run azdev test, I got the error as shown below:

Traceback (most recent call last): File "c:\users\zackl\azure-cli\venv\lib\site-packages\knack\cli.py", line 215, in invoke cmd_result = self.invocation.execute(args) File "c:\users\zackl\azure-cli\venv\lib\site-packages\knack\invocation.py", line 225, in execute cmd_result = parsed_args.func(params) File "c:\users\zackl\azure-cli\venv\lib\site-packages\knack\commands.py", line 148, in call return self.handler(*args, **kwargs) File "c:\users\zackl\azure-cli\venv\lib\site-packages\knack\commands.py", line 255, in command_handler result = op(client, **command_args) if client else op(**command_args) File "c:\users\zackl\azure-cli\venv\lib\site-packages\azdev\operations\tests_init.py", line 48, in run_tests test_index = get_test_index(profile or current_profile(), discover) File "c:\users\zackl\azure-cli\venv\lib\site-packages\azdev\operations\tests_init.py", line 332, in _get_test_index test_index = discover_tests(profile) File "c:\users\zackl\azure-cli\venv\lib\site-packages\azdev\operations\tests_init.py", line 228, in _discover_tests tests = discover_module_tests(mod_name, mod_data) File "c:\users\zackl\azure-cli\venv\lib\site-packages\azdev\operations\tests_init.py", line 160, in _discover_module_tests contents = os.listdir(mod_data['filepath']) FileNotFoundError: [WinError 3] 系统找不到指定的路径。: 'c:\users\zackl\azure-cli\src\azure-cli\azure\cli\tests'

The version of azdev is 0.1.18.

zackliu avatar Jun 17 '20 14:06 zackliu