请选择 进入手机版 | 继续访问电脑版
楼主: igs816
3510 26

[其他] Python Testing with pytest: Simple, Rapid, Effective, and Scalable [推广有奖]

泰斗

5%

还不是VIP/贵宾

-

威望
9
论坛币
2693869 个
通用积分
18515.7248
学术水平
2743 点
热心指数
3466 点
信用等级
2559 点
经验
484572 点
帖子
5413
精华
52
在线时间
3575 小时
注册时间
2007-8-6
最后登录
2024-3-28

高级学术勋章 特级学术勋章 高级信用勋章 特级信用勋章 高级热心勋章 特级热心勋章

igs816 在职认证  发表于 2017-11-6 14:38:08 |显示全部楼层 |坛友微信交流群
相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
tPZU0SRAftEaAEcuiyxnS20bOurOfFwI.jpg


256 pages | Sep 2017 | English | ASIN: B0773VRHWT | PDF (conv) | 3 MB
               
Do less work when testing your Python code, but be just as expressive, just as elegant, and just as readable. The pytest testing framework helps you write tests quickly and keep them readable and maintainable - with no boilerplate code. Using a robust yet simple fixture model, it's just as easy to write small tests with pytest as it is to scale up to complex functional testing for applications, packages, and libraries. This book shows you how.

For Python-based projects, pytest is the undeniable choice to test your code if you're looking for a full-featured, API-independent, flexible, and extensible testing framework. With a full-bodied fixture model that is unmatched in any other tool, the pytest framework gives you powerful features such as assert rewriting and plug-in capability - with no boilerplate code.

With simple step-by-step instructions and sample code, this book gets you up to speed quickly on this easy-to-learn and robust tool. Write short, maintainable tests that elegantly express what you're testing. Add powerful testing features and still speed up test times by distributing tests across multiple processors and running tests in parallel. Use the built-in assert statements to reduce false test failures by separating setup and test failures. Test error conditions and corner cases with expected exception testing, and use one test to run many test cases with parameterized testing. Extend pytest with plugins, connect it to continuous integration systems, and use it in tandem with tox, mock, coverage, unittest, and doctest.

Write simple, maintainable tests that elegantly express what you're testing and why.

What You Need:

The examples in this book are written using Python 3.6 and pytest 3.0. However, pytest 3.0 supports Python 2.6, 2.7, and Python 3.3-3.6.

本帖隐藏的内容

Python Testing with pytest.pdf (2.94 MB, 需要: 10 个论坛币)


二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Effective TESTING Effect python simple

本帖被以下文库推荐

ccmchy 在职认证  企业认证  发表于 2017-11-6 14:58:11 |显示全部楼层 |坛友微信交流群
thanks.

使用道具

军旗飞扬 发表于 2017-11-6 15:07:05 |显示全部楼层 |坛友微信交流群
谢谢楼主分享

使用道具

fengyg 企业认证  发表于 2017-11-6 17:21:15 |显示全部楼层 |坛友微信交流群
kankan

使用道具

小陆家嘴 发表于 2017-11-6 18:01:15 |显示全部楼层 |坛友微信交流群
蔡澜蔡澜蔡澜

使用道具

restalker 发表于 2017-11-6 20:11:20 |显示全部楼层 |坛友微信交流群
XIEXIE FENGXIANG

使用道具

franky_sas 发表于 2017-11-6 21:58:22 |显示全部楼层 |坛友微信交流群

使用道具

jjxm20060807 发表于 2017-11-6 22:54:10 |显示全部楼层 |坛友微信交流群
谢谢分享

使用道具

life_life 发表于 2017-11-7 00:02:20 |显示全部楼层 |坛友微信交流群
看看 看看 ,,

使用道具

kavakava 在职认证  发表于 2017-11-7 00:27:39 |显示全部楼层 |坛友微信交流群
Thanks

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jr
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-3-29 03:39