首页
Python
Java
IOS
Andorid
NodeJS
JavaScript
HTML5
【
Pytest权威教程(官方教程翻译)
】的更多相关文章
Pytest权威教程(官方教程翻译)
Pytest权威教程01-安装及入门 Pytest权威教程02-Pytest 使用及调用方法 Pytest权威教程03-原有TestSuite的执行方法 Pytest权威教程04-断言的编写和报告 Pytest权威教程05-Pytest fixtures:清晰 模块化 易扩展 Pytest权威教程06-使用Marks标记测试用例 Pytest权威教程07-Monkeypatching,对模块和环境进行Mock Pytest权威教程08-使用tmp目录和文件 Pytest权威教程09-捕获标准输出…
BLE教程 - 官方tutorial翻译
关键术语和概念 1. Generic Attribute Profile(GATT)GATT配置文件是一个通用规范,用于在BLE链路上发送和接收被称为"属性"的数据块.目前所有的BLE应用都基于GATT. 蓝牙SIG规定了许多低功耗设备的配置文件.配置文件是设备如何在特定的应用程序中工作的规格说明.注意一个设备可以实现多个配置文件.例如,一个设备可能包括心率监测仪和电量检测. 2. Attribute Protocol(ATT)GATT在ATT协议基础上建立,也被称为GATT/ATT.…
Pytest权威教程03-原有TestSuite的执行方法
目录 原有TestSuite的执行方法 使用pytest运行已存在的测试套件(test suite) 返回: Pytest权威教程 原有TestSuite的执行方法 Pytest可以与大多数现有的测试套件(testsuite)一起使用,但是它的加载方式方式不像nose或Python的默认单元测试框架的测试运行器(test runner). 在使用本节之前,你需要安装pytest. 使用pytest运行已存在的测试套件(test suite) 假设你想要在某个地方为现有仓库(respsitory)…
Pytest权威教程21-API参考-01-函数(Functions)
目录 函数(Functions) pytest.approx pytest.fail pytest.skip pytest.importorskip pytest.xfail pytest.exit pytest.main pytest.param pytest.raises pytest.deprecated_call pytest.register_assert_rewrite pytest.warns pytest.freeze_includes 返回: Pytest权威教程 函数(Fun…
Unity性能优化(3)-官方教程Optimizing garbage collection in Unity games翻译
本文是Unity官方教程,性能优化系列的第三篇<Optimizing garbage collection in Unity games>的翻译. 相关文章: Unity性能优化(1)-官方教程The Profiler window翻译 Unity性能优化(2)-官方教程Diagnosing performance problems using the Profiler window翻译 Unity性能优化(3)-官方教程Optimizing garbage collection in Uni…
Unity性能优化(4)-官方教程Optimizing graphics rendering in Unity games翻译
本文是Unity官方教程,性能优化系列的第四篇<Optimizing graphics rendering in Unity games>的翻译. 相关文章: Unity性能优化(1)-官方教程The Profiler window翻译 Unity性能优化(2)-官方教程Diagnosing performance problems using the Profiler window翻译 Unity性能优化(3)-官方教程Optimizing garbage collection in Uni…
Unity性能优化(2)-官方教程Diagnosing performance problems using the Profiler window翻译
本文是Unity官方教程,性能优化系列的第二篇<Diagnosing performance problems using the Profiler window>的简单翻译. 相关文章: Unity性能优化(1)-官方教程The Profiler window翻译 Unity性能优化(2)-官方教程Diagnosing performance problems using the Profiler window翻译 Unity性能优化(3)-官方教程Optimizing garbage co…
Unity性能优化(1)-官方教程The Profiler window翻译
本文是Unity官方教程,性能优化系列的第一篇<The Profiler window>的简单翻译. 相关文章: Unity性能优化(1)-官方教程The Profiler window翻译 Unity性能优化(2)-官方教程Diagnosing performance problems using the Profiler window翻译 Unity性能优化(3)-官方教程Optimizing garbage collection in Unity games翻译 Unity性能优化(4)…
Pytest权威教程19-编写钩子(Hooks)方法函数
目录 编写钩子(Hooks)函数 钩子函数验证和执行 firstresult: 遇到第一个有效(非None)结果返回 hookwrapper:在其他钩子函数周围执行 钩子(Hooks)函数排序/调用示例 声明新的钩子函数 使用第三方插件的钩子函数 返回: Pytest权威教程 编写钩子(Hooks)函数 钩子函数验证和执行 Pytest会调用任意给定规格并注册了的插件的钩子方法.让我们看一下一个函数的典型钩子函数 pytest_collection_modifyitems(session,con…
Pytest权威教程25-配置
目录 配置 命令行选项和配置文件设置 初始化:确定ROOTDIR和INIFILE 寻找rootdir 如何更改命令行选项默认值 内置的配置文件选项 返回: Pytest权威教程 配置 命令行选项和配置文件设置 你可以使用常规帮助选项获取有关INI选项配置文件中命令行选项和值的帮助: pytest -h # prints options _and_ config file settings 这将显示已安装插件注册的命令行和配置文件设置. 初始化:确定ROOTDIR和INIFILE pytest根据…