如何使用pytest生成测试报告?我搜索了它,但无论我得到的是关于报道报道.我试过这个命令:
py.test sanity_tests.py --cov=C:\Test\pytest --cov-report=xml
Run Code Online (Sandbox Code Playgroud)
但是,参数表示它生成覆盖率报告而不是测试报告.请帮忙!!
我正在尝试导入 WMPLib 但 Visual Studio 但它给出了消息
Type or Namespace name 'WMPLib' could not be found。我也尝试使用 System.Windows.Media 但对于 Media 它再次给出相同的消息。我尝试从工具箱中添加 Windows Media Player
Choose Tool Box Items->Com Components->Windows Media Player
Run Code Online (Sandbox Code Playgroud)
但这是行不通的。
我使用此代码来解压缩受密码保护的压缩文件:
with zipfile.ZipFile(folder_name+'\\'+each+'\\'+latest, "r") as z:
z.extractall(folder_name+'\\'+each+'\\'+each,pwd=passwd)
Run Code Online (Sandbox Code Playgroud)
这在功能上工作完美,但非常慢。有什么办法可以让解压速度更快吗?