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/
````

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java log4j找不到log4jtest。房产?   我在java线程“awteventque1”中获得异常。lang.NullPointerException   java为什么在使用完整路径从文件系统读取文件时出错?   java如何迭代所有注册表项?   java中的安卓 Opencv SVM未正确训练   多线程Java ThreadPoolExecutor关闭特定线程?   如何使用Java NIO CreateDirectory方法设置目录所有者组?   java NatTable混合了固定宽度的列和可调整大小的填充剩余空间   java如何删除特定网络,即使该网络是由安卓上的其他设备创建的?   java Guava toJavaUtil()不存在   java对许多常量使用枚举是有效的memorywise?   java是否可以使用坐标定位JButton?   从WSDL生成java代码导致异常   java如何在安卓中导出javadoc   爬行JAX中的java NoClassDefFoundError错误   java为片段中的文本视图设置区域设置   发送最后一条消息后发生Java RMI RemoteException