楼主: igs816
4338 26

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

已卖:261212份资源

泰斗

6%

还不是VIP/贵宾

-

威望
9
论坛币
1762736 个
通用积分
20526.2163
学术水平
2754 点
热心指数
3477 点
信用等级
2565 点
经验
485149 点
帖子
5457
精华
52
在线时间
3905 小时
注册时间
2007-8-6
最后登录
2025-12-21

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

楼主
igs816 在职认证  发表于 2017-11-6 14:38:08 |AI写论文

+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

7
franky_sas(未真实交易用户) 发表于 2017-11-6 21:58:22

8
jjxm20060807(真实交易用户) 发表于 2017-11-6 22:54:10
谢谢分享

9
life_life(真实交易用户) 发表于 2017-11-7 00:02:20
看看 看看 ,,

10
kavakava(真实交易用户) 在职认证  发表于 2017-11-7 00:27:39
Thanks

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

本版微信群
加好友,备注jr
拉您进交流群
GMT+8, 2025-12-22 04:39