django web框架的烟雾测试框架
django-smoked的Python项目详细描述
[![构建状态](https://travis ci.org/djentlemen/django smoked.svg)(https://travis ci.org/djentlemen/django smoked)
[![覆盖状态](https://covertalls.io/repos/djentlemen/django-smoked/badge.svg?branch=master)](https://coveralls.io/r/djentlemen/django-smoked?branch=master)
-jacob kaplan moss,django核心开发人员
每次成功部署应用程序后,都必须进行一系列测试,以确保网站正常运行。
与在隔离环境中运行的单元/集成/功能/性能/etc测试相比,烟雾测试旨在安全检查生产环境。这些测试只检查基本功能,例如电子邮件发送正常,应用程序能够连接到数据库,后台队列接受任务,等。
idea
def test(self):
…
````
>烟雾测试在自定义模块中手工注册:
````python
` settings.py
smoke `烟雾测试` myproject.smoked'
`````
````python
`` python
`` myproject/smoked.py
>导入smoked
>内置测试
smoked.register.register('smoked.databasetest')
自定义test
smoked.register('myproject.messagequeuetest')
description='long text')
def smoke嫘test():
…
默认名称和说明
@smoked.register
def smoke嫘test():name='smoke嫘test'
“docstring将变为description”“”
…
`````````
Smoked
```
或一个api调用:
```shell
curl-d“token=verysecrettoken”http://myproject.io//u smoked/
````
[![覆盖状态](https://covertalls.io/repos/djentlemen/django-smoked/badge.svg?branch=master)](https://coveralls.io/r/djentlemen/django-smoked?branch=master)
-jacob kaplan moss,django核心开发人员
每次成功部署应用程序后,都必须进行一系列测试,以确保网站正常运行。
与在隔离环境中运行的单元/集成/功能/性能/etc测试相比,烟雾测试旨在安全检查生产环境。这些测试只检查基本功能,例如电子邮件发送正常,应用程序能够连接到数据库,后台队列接受任务,等。
idea
def test(self):
…
````
>烟雾测试在自定义模块中手工注册:
````python
` settings.py
smoke `烟雾测试` myproject.smoked'
`````
````python
`` python
`` myproject/smoked.py
>导入smoked
>内置测试
smoked.register.register('smoked.databasetest')
自定义test
smoked.register('myproject.messagequeuetest')
description='long text')
def smoke嫘test():
…
默认名称和说明
@smoked.register
def smoke嫘test():name='smoke嫘test'
“docstring将变为description”“”
…
`````````
Smoked
```
或一个api调用:
```shell
curl-d“token=verysecrettoken”http://myproject.io//u smoked/
````