生成测试工具 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://www.codercto.com/soft/d/19601.html

Verilog数字系统设计教程

Verilog数字系统设计教程

夏宇闻 / 北京航空航天大学出版社 / 2003-7-1 / 38.0

《Verilog数字系统设计教程》可作为电子工程类、自动控制类、计算机类的大学本科高年级及研究生教学用书,亦可供其他工程人员自学与参考。一起来看看 《Verilog数字系统设计教程》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

MD5 加密
MD5 加密

MD5 加密工具

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

RGB CMYK 互转工具