书栈网 · BookStack 本次搜索耗时 0.035 秒,为您找到 169 个相关结果.
  • Mocking

    409 2020-09-06 《Dojo v7.0 Tutorial》
    Mocking Provided middleware mocks Mock breakpoint middleware Mock focus middleware Mock icache middleware Mock intersection middleware Mock node middleware Mock resize m...
  • HOOKS

    788 2018-06-06 《mocha中文文档》
    HOOKS 鉴于默认使用BDD风格的接口,Mocha提供了一些钩子函数:before() ,after() ,beforeEach() 和afterEach() 。这些钩子函数可以用于设置测试的先决条件或者对测试进行清理。 describe ( 'hooks' , function () { before ( function ()...
  • Behaviour Testing

    Behaviour Testing Tools for Behaviour Testing Behaviour Testing Also known as Behaviour Driven Development, this kind of testing tests the entire stack. For example a behavior...
  • Appendix - Third Party Modules 附录:第三方模块

    796 2018-02-06 《nodejs中文文档》
    Appendix - Third Party Modules 附录:第三方模块 Appendix - Third Party Modules 附录:第三方模块 目前为止, 已经有很多基于Node 的第三方模块, 模块的代码主仓库地址为http://github.com/ry/node/wiki/modules[Wiki 页面] 本目录旨在作为一个...
  • Write test cases

    Write test cases Write test cases There’re lots of excellent test frameworks written in Node.js. For example, mocha , jasmine and so on. We would like to use mocha to write o...
  • 添加测试

    添加测试 npm install -- save - dev mocha npm install -- save - dev chai npm install -- save - dev sinon npm install -- save - dev supertest npm install -- save - dev z...
  • Test Renderer

    277 2020-09-06 《Dojo v7.0 Tutorial》
    Test Renderer Wrapped Test Nodes Assertion Assertion API assertion.setChildren() assertion.append() assertion.prepend() assertion.replaceChildren() assertion.insertSibling...
  • Introduction

    441 2020-09-06 《Dojo v6.0 Tutorial》
    Introduction Basic usage Testing Dojo applications Running specific test suites Writing unit tests Writing functional tests Using assertion templates Introduction Dojo pr...
  • 开发和提交代码

    开发和提交代码 安装环境 获取代码 编译和测试 安装 go tools 语法格式检查 编译 peer 生成 Docker 镜像 执行所有的检查和测试 执行单元测试 执行 BDD 测试 提交代码 完整流程 开发和提交代码 安装环境 推荐在 Linux(如 Ubuntu 14.04+)或 MacOS 环境中开发代码,并安装如下...
  • 使用 Mocha 进行自动化测试

    为什么我们需要测试? 行为驱动开发(BDD) 开发 “pow”:规范 开发流程 行为规范 初始实现 改进规范 改进实现 嵌套描述 延伸规范 总结 任务 测试代码中有什么错误? 自动化测试将被用于进一步的任务中,并且还将被广泛应用在实际项目中。 为什么我们需要测试? 当我们在写一个函数时,我们通常可以想象出它应该做什么:哪些参...