显示测试执行输出的pytest插件,如mochajs
pytest-mocha的Python项目详细描述
#pytest mocha
[mochajs]格式的pytest输出
![Pytest摩卡](https://cloud.githubusercontent.com/assets/5260987/26183565/eaa21f8e-3b55-11e7-8c9e-bdf1613d3903.png)
它使用docstrigs作为工具,使用“describe”和“it”结构创建摩卡创建的部分。示例:
``python
``python
`文件示例/test-example.py
detest-test-case():
''section::subsection::subsection::sushoresexecutetest''
pass
````
>
`:
`>
`````````
>
`
/>`
```
管道安装pytest mocha
```
[mochajs]格式的pytest输出
![Pytest摩卡](https://cloud.githubusercontent.com/assets/5260987/26183565/eaa21f8e-3b55-11e7-8c9e-bdf1613d3903.png)
它使用docstrigs作为工具,使用“describe”和“it”结构创建摩卡创建的部分。示例:
``python
``python
`文件示例/test-example.py
detest-test-case():
''section::subsection::subsection::sushoresexecutetest''
pass
````
>
`:
`>
`````````
>
`
/>`
```
管道安装pytest mocha
```