码迷,mamicode.com
首页 >  
搜索关键字:unit-testing    ( 103个结果
19.unittest原理
单元测试单元测试(unit testing)是指对软件中的最小可测试单元进行检查和验证。对于单元测试中单元的含义,一般来说,要根据实际情况去判定其具体含义,如C语言中单元指一个函数,Java里单元指一个类,图形化的软件中可以指一个窗口或一个菜单等。总的来说,单元就是人为规定的最小的被测功能模块。单元 ...
分类:其他好文   时间:2019-02-13 10:57:11    阅读次数:163
[Unit Testing] Mock a Node module's dependencies using Proxyquire
Sometimes when writing a unit test, you know that the module you're testing imports a module that you would like to observe, or at the very least mock ...
分类:其他好文   时间:2019-01-03 19:33:53    阅读次数:175
JUnit单元测试教程(翻译自Java Code Geeks)
说明 本教程翻译自Java Code Geeks,原文网址:https://www.javacodegeeks.com/2014/11/junit-tutorial-unit-testing.html#suite_tests。翻译的过程中,有少部分内容是译者添加的解释说明和对原文章中错误地方的修正。 ...
分类:编程语言   时间:2018-12-29 23:36:16    阅读次数:351
十分钟了解单元测试
一、单元测试 1、什么是单元测试? 单元测试(unit testing),是指对软件中的最小可测试单元进行检查和验证。 单元测试是在软件开发过程中要进行的最低级别的测试活动,软件的独立单元将在与程序的其他部分相隔离的情况下进行测试。 2、单元测试的分类有哪些? 软件测试可以按测试范围、测试目的、测试 ...
分类:其他好文   时间:2018-11-28 22:22:52    阅读次数:171
[Unit Testing] Fundamentals of Testing in Javascript
In this lesson, we’ll get the most fundamental understanding of what an automated test is in JavaScript. A test is code that throws an error when the ...
分类:编程语言   时间:2018-10-25 11:05:10    阅读次数:130
python3也支持的HTMLTestRunner
1 """ 2 A TestRunner for use with the Python unit testing framework. It 3 generates a HTML report to show the result at a glance. 4 5 The simplest way... ...
分类:编程语言   时间:2018-09-28 13:46:43    阅读次数:130
测试术语-好东西要跟大家一块分享-2
Unit testing(单元测试) 指一段代码的基本测试,其实际大小是未定的,通常是一个函数或子程序,一般由开发者执行。 Integration testing(集成测试) 被测试系统的所有组件都集成在一起,找出被测试系统组件之间关系和接口中的错误。该测试一般在单元测试之后进行。 Acceptan ...
分类:其他好文   时间:2018-08-10 19:50:03    阅读次数:149
HTMLTestRunner.py
""" A TestRunner for use with the Python unit testing framework. It generates a HTML report to show the result at a glance. The simplest way to use th... ...
分类:Web程序   时间:2018-07-28 00:11:21    阅读次数:158
UI自动化web端框架HTMLTestRunner.py代码
# -*- coding: utf-8 -*-"""A TestRunner for use with the Python unit testing framework. Itgenerates a HTML report to show the result at a glance.The si ...
分类:Web程序   时间:2018-07-05 14:54:51    阅读次数:231
Rails 5 Test Prescriptions 第10章 Unit_Testing JavaScript(新工具,learn曲线太陡峭,pass)
对Js的单元测试是一个大的题目。作者认为Ruby的相关测试工具比Js的测试工具更灵活 大多数Js代码最终是关于响应用户的行为和改变DOM中的元素 没有什么javascript的知识点。前两节用了几个新的测试工具,和大量配置,暂时pass. setup js Unit-testswriting a S ...
分类:编程语言   时间:2018-06-01 11:36:58    阅读次数:168
103条   上一页 1 ... 3 4 5 6 7 ... 11 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!