生成测试工具 Genty

码农软件 · 软件分类 · 测试工具 · 2019-11-23 09:14:32

软件介绍

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)


本文地址:https://codercto.com/soft/d/19601.html

jQuery

jQuery

Earle Castledine、Craig Sharkie / SitePoint / 2010-02-28 / USD 39.95

jQuery: Novice to Ninja is a compilation of best-practice jQuery solutions to meet the most challenging JavaScript problems. In this question-and-answer book on jQuery, you'll find a cookbook of ready......一起来看看 《jQuery》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

MD5 加密
MD5 加密

MD5 加密工具

RGB CMYK 转换工具
RGB CMYK 转换工具

RGB CMYK 互转工具