构建用于创建zope.testing测试运行程序的配方

tranchitella.recipe.testrunner的Python项目详细描述


tranchitella.recipe.testrunner

此配方创建支持代码的zope.testing测试运行程序脚本 使用coveragepython库进行覆盖率分析。

使用量

配方支持以下选项:

鸡蛋

The eggs option specified a list of eggs to test given as one ore more setuptools requirement strings. Each string must be given on a separate line.

脚本名称

The script option gives the name of the script to generate, in the buildout bin directory. Of the option isn’t used, the part name will be used.

额外路径

One or more extra paths to include in the generated test script.

默认值

The defaults option lets you specify testrunner default options.

工作目录

The working-directory option lets to specify a directory where the tests will run. The testrunner will change to this directory when run. If the working directory is the empty string or not specified at all, the recipe will create a working directory among the parts.

环境

A set of environment variables that should be exported before starting the tests.

初始化

Provide initialization code to run before running tests.

相对路径

Use egg, test, and working-directory paths relative to the test script.

这是一个最小的“buildout.cfg”文件,用于创建测试运行程序:

[test]
recipe = tranchitella.recipe.testrunner
eggs = myapplication

[test-coverage]
recipe = tranchitella.recipe.testrunner
eggs = myapplication
defaults = ['--coverage-module', 'myapplication', '--coverage-branch']

更改

0.4(2010-08-24)

  • 更新了代码以依赖于zope.testrunner而不是zope.testing。

0.3(2010-06-14)

  • 添加了一个新选项(–coverage html)来运行html coverage命令

0.2(2010-04-22)

  • 添加了一个新选项(–coverage annotate)来运行annotate coverage 命令。
  • 添加了一个新选项(–coverage xml)来运行xml_report coverage命令。

0.1(2010-04-22)

  • 第一个版本,从zc.recipe.testrunner派生。

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

推荐PyPI第三方库


热门话题
java如何从thymeleaf表单保存地址对象和用户对象的列表?   序列化java。时间使用Jackson将localdate转换为json   java删除LinearLayout和子级之间的空间   具有内存大小限制的Java队列   java尝试在freemarker中创建min(a,b)函数失败   askQuestion()方法中的Java逻辑问题   在Java客户端中接受服务器的自签名ssl证书   java如何正确更新字符串数组?   java如何使多个方法调用充当一个事务性工作单元   swing如何创建可滚动的Java框?   java如何使用SearchView在多个单词之间搜索?   初始化启动层java时出错。lang.module。FindException:模块javafx。找不到图形   java struts对隐藏字段的转义形式验证   用于构建FEM 3D解算器的java JOGL与JAVA3D   java mvn安装忽略hibernate映射文件   在C++和java之间使用JNI通信时,我在哪里保存“这个”?   java无法使用计时器重新绘制窗口   java我遇到一个找不到符号的错误,我无法解决   IntelliJIdea生成实体时java面临的问题   java在动态文本的末尾添加三个点