zope testrunner的包装器,提供电子邮件支持、html生成和rss支持

haufe.testrunner的Python项目详细描述


高温试验转轮(HTR)

testrunner是标准zope2testrunner(通常是 开始使用"Zopectl测试…"。testrunner被设计成可以正常运行 测试不同的zope配置或沙盒。它支持 可配置的测试环境,纯文本或HTML格式的报告,电子邮件 通知和RSS。testrunner基本上设计为运行 通过cron来测试正在进行的项目(继续集成)。

要求

  • sqlalchemy>;=0.4.6

安装

testrunner可直接从haufecomponents存储库获得:

svn co svn+ssh://svn.haufe.de/VCS/svnrep/svnep/HaufeComponents/haufe.testrunner/trunk haufe.testrunner
python2.4 setup.py install

或者直接从存储库轻松安装:

easy_install svn+ssh://svn.haufe.de/VCS/svnrep/svnep/HaufeComponents/haufe.testrunner/trunk haufe.testrunner

或者可以使用easy_install从现有的egg安装:

easy_install haufe.runner-x.y.z.egg

确保您的pythonpath设置正确并包括在内 $software_home/lib/python(为了导入zope.component和其他zope 3 相关模块正确)

使用haufe.testrunner

testrunner将安装一个命令行skcript htr HTR 要求 定义测试环境的配置文件。

示例:

[default]

# Path to instance home of sandbox
sandbox=/home/ajung/sandboxes/Zope-2.8/Zope

# unique string for the sandbox (used for mail, reports)
ident=Zope-HEAD

# comma-seperated list of products or packages to be tested
packages = Products.PageTemplates,
           Products.HaufePortlet,
           zope.component

# comma-seperated list of email addresses to send positive emails
email_ok=foo@bar.org

# comma-seperated list of email addresses to send negative emails
email_failure=foo@bar.org

# Base URL of the webserver pointing to your sandbox
base_url=http://zopedev2/zopeDominoTesting

# run testrunner with coverage option (optional, default: no coverage)
coverage = 1

# sender email address
sender_address = noreply@foo.org

# Database DSN
dsn = postgres://user:password@host/dbname

# optional support for integration tests:
# (the test_suite() method must check the environment variable
# $INTEGRATION_TESTS).
integration_tests = 1

# optional name for zope start script default ist set to 'zopectl`
zope_start=zopectl

# optional paramter to set test options
#runner_options=-s -a

# For Selenium tests (optional) we use a dedicated [selenium] section
[selenium]

# hostname where the Selenium RC server is running
testrunner_host = hostname

# port number of the Selenium RC server
testrunner_port = 4444

# instance_url - the given URL is exposed to selenium testcases derived
# from haufe.selenium.SeleniumTestcase as self.instance_url. This allows
# you to run Selenium tests against different remote servers
instance_url = http://zopedev2:16180


# For integration tests we can run the tests against an existing ZEO server
# instead of using DemoStorage
[zeo]
host = zopedev2
port = 22222

使用以下命令启动haufe.testrunner:

htr --conf /path/to/yourconfig

可选选项–mail和–rss控制邮件的生成 通知和rss提要。如果指定–update,则haufe.testrunner 将在之前更新您的 产品 lib/python 基本 目录 运行测试。

–clean将删除包含比一个旧的testrunner日志的目录 周> P >

–数据库将保存数据库中的所有结果(见下文)

数据库集成:

所有结果都可以选择性地存储在关系数据库中 (用于外部报告、RSS源、WebFrontEnd等)。

创建数据库:

htr_bootstrap -dt

必须使用环境变量testing指定数据库, 例如:

export TESTING_DSN=postgres://username:password@dbhost/TestrunnerDB

要在数据库中存储结果,请将–db选项传递给 htr 脚本。

也可以在配置中使用"dsn"选项指定dsn 文件(见上文)。

首先需要通过调用htr_bootstrap脚本来创建数据库 (见上文)。

作者

haufe.testrunner 由Andreas Jung为德国弗莱堡的haufe Mediengruppe撰写 以及Zopyx有限公司和KG,德国图宾根。

许可证

haufe.testrunner 根据Zope公共许可2.1获得许可。

请参阅包含的zpl.txt文件。

联系人

< div > 佐皮克斯有限公司 安德烈亚斯·荣格 夏洛滕斯特。37/1
德国图宾根D-72070
电子邮件:zopyx.com上的信息

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

推荐PyPI第三方库


热门话题
java jni将坐标从c传输到java   java一旦到达endofstream,是否应该显式关闭连接?   当端口587被阻止时,如何用Java发送gmail?   带有web项目的java Maven UI项目配置   使用Jackson ObjectMapper在java之间进行转换。时间Instant和java。util。日期   java通过合并自定义HTTP头支持每个浏览器的多个会话   java使用servlet在JSP中发送邮件   从同一端口为WebSocket和网页提供服务的java   Java中向后兼容的包装类   类Java instanceof在应该为true时返回false   java resultactions将httpstatuscode设置为特定值   java与JC++第三头C++文件头的连接   java错误方法未实现   java XmlAdapter到JAXBbind Joda的时间间隔?   具有最快(并发)添加操作的java集合   读取对象时java ClassNotFoundException   java Fluent getter生成错误   JavaSE中的连接池?   java为什么使用这个安卓lockpattern库获取垃圾值作为输出?   java选择正确的调用方法