Genty 生成测试工具

程序名称:Genty

Genty 介绍

Genty,发音 “gen-tee”,表示 “生成测试” 的意思。它能帮助生成测试,单个测试可以执行多个输入。

示例,一个文件 sample.py 包括测试代码和测试:

from box.test.genty import genty, genty_repeat, genty_datasetfrom unittest import TestCase# Here's the class under testclass MyClass(object):
    def add_one(self, x):
        return x + 1# Here's the test code@gentyclass MyClassTests(TestCase):
    @genty_dataset(
        (0, 1),
        (100000, 100001),
    )
    def test_add_one(self, value, expected_result):
        actual_result = MyClass().add_one(value)
        self.assertEqual(expected_result, actual_result)

Genty 官网

https://github.com/box/genty

相关编程语言

提到 EclEmma 首先就要说到著名的 Java 覆盖测试工具...
Solex是一个WEB应用测试用的Eclipse插件。Solex可以...
Apache为我们提供了一个强大的工具 Cactus!它是一套...
Google C Testing Framework是Google公司用来在各种...
JdbcProxy 是 SourceForge 上一个开源的 Java 项目,...
Ripplet是一款负载测试工具,特征如下: 1)基于Apa...