Python测试驱动开发(影印版) 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
Python测试驱动开发(影印版)电子书下载地址
内容简介:
珀西瓦尔编*的《python测试驱动开发(影印版)(英文版)》这本实用指南带你从头至尾经历一个真实web应用开发的全过程,展示了python测试驱动开发(tdd)的优越性。你将学到如何在应用程序各部分被构建出来之前就编写并运行测试,然后开发* 少量的代码就让这些测试运行通过。结果得到什么?能够运行的简洁代码。 在书中,你将学到diango、selenium、git、 iquery和mock的基础知识,另外还有现代web开发技巧。如果你准备将自己的python技术提升到下一个层次,这本书清楚地展示了测试驱动开发是如何提倡简单设计并增进信心。 深入测试驱动开发工作流,包括单元测试/编码周期循环和重构 为类和函数使用单元测试,并为浏览器内的用户交互使用功能测试 学习何时与如何运用mock对象,以及单独和集成测试的优缺点 在开发用服务器上测试以及自动化部署 将测试运用到网站集成的第三方插件上去 使用一个持续集成环境来自动运行测试
书籍目录:
prefaceprerequisites and assumptionscompanion videoacknowledgmentspart i. the basics of tdd and django1. getting django set up using a functional test obey the testing goat! do nothing until you have a test getting django up and running starting a git repository2. extending our functional test using the unittest module using a functional test to scope out a minimum viable app the python standard library's unittest module implicit waits commit3. testing a simple home page with unit tests our first django app, and our first unit test unit tests, and how they differ from functional tests unit testing in django django's mvc, urls, and view functions at last! we actually write some application code! urls.py unit testing a view the unit-test/code cycle4. what are we doing with all these tests? programming is like pulling a bucket of water up from a well using selenium to test user interactions the "don't test constants" rule, and templates to the rescue refactoring to use a template on refactoring a little more of our front page recap: the tdd processs. saving user input wiring up our form to send a post request processing a post request on the server passing python variables to be rendered in the template three strikes and refactor the django orm and our first model our first database migration the test gets surprisingly far a new field means a new migration saving the post to the database redirect after a post better unit testing practice: each test should test one thing rendering items in the template creating our production database with migrate6. getting to the minimum viable site ensuring test isolation in functional tests running lust the unit tests small design when necessary yagni! rest implementing the new design using tdd iterating towards the new design testing views, templates, and urls together with the django test client a new test class a new url a new view function a separate template for viewing lists another url and view for adding list items a test class for new list creation a url and view for new list creation removing now-redundant code and tests pointing our forms at the new url adjusting our models a foreign key relationship adjusting the rest of the world to our new models each list should have its own url capturing parameters from urls adjusting new_list to the new world one more view to handle adding items to an existing list beware of greedy regular expressions! the last new url the last new view but how to use that url in the form? a final refactor using url includespart ii. web development sine qua nons 7. prettification: layout and styling, and what to test about it 8. testing deployment using a staging site. 9. automating deployment with fabric 10. input validation and test organisation 11. a simple form 12. more advanced forms 13. dipping our toes, very tentatively, into javascript 14. deploying our new codepart iii. more advanced topics 15. user authentication, integrating third-party plugins, and mocking with javascript. 16. server-side authentication and mocking in python 17. test fixtures, logging, and server-side debugging 18. finishing "my lists": outside-in tdd 19. test isolation, and "listening to your tests". 20. continuous inteoration (ci) 21. the token social bit, the page pattern, and an exercise for the reader 22. fast tests, slow tests, and hot lava..obey the testing goat!a. pythonanywhereb. django class-based viewsc. provisioning with ansibled. testing database migrationse. behaviour-driven development (bdd)f. cheat sheetg. what to do nexth. bibliographyindex
作者介绍:
暂无相关内容,正在全力查找中
出版社信息:
暂无出版社相关信息,正在全力查找中!
书籍摘录:
暂无相关书籍摘录,正在全力查找中!
在线阅读/听书/购买/PDF下载地址:
原文赏析:
Do you know why the Django mascot is a pony? The story is that Django comes with so many things you want: an ORM, all sorts of middleware, the admin site … "What else do you want, a pony?" Well, Gunicorn stands for "Green Unicorn", which I guess is what you’d want next if you already had a pony…
On the Pros and Cons of Different Types of Test, and Decoupling ORM code
Functional tests
Provide the best guarantee that your application really works correctly, from the point of view of the user.
But: it’s a slower feedback cycle,
And they don’t necessarily help you write clean code.
Integrated tests (reliant on, eg, the ORM or the Django Test Client)
Are quick to write,
Easy to understand,
Will warn you of any integration issues,
But may not always drive good design (that’s up to you!).
And are usually slower than isolated tests
Isolated ("mocky") tests
These involve the most hard work.
They can be harder to read and understand,
But: these are the best ones for guiding you towards better design.
And they run the fastest.
Decoupling our application from ORM code
When striving to write ...
So one way of getting what we want is to try and minimise the amount of our code that has to deal with boundaries. Then we test our core business logic with isolated tests and test our integration points with integrated tests.
Functional tests should help you build an application with the right functionality, and guarantee you never accidentally break it. Unit tests should help you to write code that’s clean and bug free.
We can start to settle into the TDD unit-test/code cycle now:
1. In the terminal, run the unit tests and see how they fail.
2. In the editor, make a minimal code change to address the current test failure.
And repeat!
Kent Beck (who basically invented TDD) uses the metaphor of lifting a bucket of water out of a well with a rope: when the well isn’t too deep, and the bucket isn’t very full, it’s easy. And even lifting a full bucket is pretty easy at first. But after a while, you’re going to get tired. TDD is like having a ratchet that lets you save your progress, take a break, and make sure you never slip backwards. That way you don’t have to be smart all the time.
...
TDD is a discipline, and that means it’s not something that comes naturally; because many of the payoffs aren’t immediate but only come in the longer term, you have to force yourself to do it in the moment. That’s what the image of the Testing Goat is supposed to illustrate—you need to be a bit bloody-minded about it.
其它内容:
书籍介绍
珀西瓦尔编*的《python测试驱动开发(影印版)(英文版)》这本实用指南带你从头至尾经历一个真实web应用开发的全过程,展示了python测试驱动开发(tdd)的优越性。你将学到如何在应用程序各部分被构建出来之前就编写并运行测试,然后开发* 少量的代码就让这些测试运行通过。结果得到什么?能够运行的简洁代码。 在书中,你将学到diango、selenium、git、 iquery和mock的基础知识,另外还有现代web开发技巧。如果你准备将自己的python技术提升到下一个层次,这本书清楚地展示了测试驱动开发是如何提倡简单设计并增进信心。 深入测试驱动开发工作流,包括单元测试/编码周期循环和重构 为类和函数使用单元测试,并为浏览器内的用户交互使用功能测试 学习何时与如何运用mock对象,以及单独和集成测试的优缺点 在开发用服务器上测试以及自动化部署 将测试运用到网站集成的第三方插件上去 使用一个持续集成环境来自动运行测试
网站评分
书籍多样性:8分
书籍信息完全性:6分
网站更新速度:4分
使用便利性:7分
书籍清晰度:6分
书籍格式兼容性:5分
是否包含广告:9分
加载速度:8分
安全性:4分
稳定性:8分
搜索功能:7分
下载便捷性:3分
下载点评
- 经典(174+)
- 可以购买(678+)
- 无广告(424+)
- 四星好评(358+)
- 值得购买(230+)
- 内涵好书(493+)
- 内容齐全(518+)
- 不亏(209+)
- 在线转格式(512+)
- 少量广告(107+)
- 体验好(313+)
- 好评多(87+)
- 体验满分(435+)
下载评价
- 网友 堵***格: ( 2024-12-27 15:52:10 )
OK,还可以
- 网友 谭***然: ( 2025-01-02 00:42:28 )
如果不要钱就好了
- 网友 居***南: ( 2024-12-22 08:45:26 )
请问,能在线转换格式吗?
- 网友 国***芳: ( 2024-12-22 07:40:34 )
五星好评
- 网友 扈***洁: ( 2024-12-19 20:02:36 )
还不错啊,挺好
- 网友 康***溪: ( 2024-12-30 00:46:16 )
强烈推荐!!!
- 网友 通***蕊: ( 2025-01-09 11:23:12 )
五颗星、五颗星,大赞还觉得不错!~~
- 网友 养***秋: ( 2025-01-14 13:54:45 )
我是新来的考古学家
- 网友 宓***莉: ( 2025-01-12 08:54:53 )
不仅速度快,而且内容无盗版痕迹。
- 网友 冯***卉: ( 2024-12-24 22:13:23 )
听说内置一千多万的书籍,不知道真假的
- 网友 宫***凡: ( 2024-12-20 08:15:44 )
一般般,只能说收费的比免费的强不少。
- 网友 利***巧: ( 2025-01-03 07:09:00 )
差评。这个是收费的
- 网友 后***之: ( 2025-01-18 04:55:40 )
强烈推荐!无论下载速度还是书籍内容都没话说 真的很良心!
- 网友 冯***丽: ( 2025-01-07 03:27:06 )
卡的不行啊
喜欢"Python测试驱动开发(影印版)"的人也看了
羊驼麦卡系列:羊驼麦卡 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
包邮正版 旅游大百科 图文珍藏版精装全6卷 旅游指南书籍游遍世界游遍中国非洲游亚洲游旅游工具书旅游百科 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
夜晚的潜水艇(陈春成短篇小说集,游荡于旧山河与未知宇宙间,汉语的一种风度与可能性,阿乙、贾行家、陆庆屹、东东枪、激赏) 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
英语国家概况(第二版) 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
【中商原版】为什么他投资一直赚大钱 全球金融学校的散户获利方程式 港台原版 市川雄一郎 全球金融学校 先觉 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- 1秒钟救急酒店英语口语 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- 上海及周边省区公路网地图集—沪苏浙 上海地图册 高速公路名称及编号 城市区域图 城市过境导向图 2020年新 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- 趋近自然—范曾新作 范曾 著 中国人民大学出版社【正版】 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- 销售管理 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- 二十四史全套63册 中华书局 简体字本二十四史全本全注全译 史记汉书三国志 晋书唐书五代史元史金辽史 明史 h 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- 东来第一山——保国寺 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- “营改增”后房地产税制的重组与完善 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- CCNP ISCW认证考试指南 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- 民调局异闻录后传终结季全套7册 耳东水寿大结局拿霸迷踪秦岭迷藏昆仑神庙困阵之兽疑难盗墓探险小说畅销书中国异闻录 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
- 勾吴 一位平面设计师的视界 下载 pdf 百度网盘 epub 免费 2025 电子书 mobi 在线
书籍真实打分
故事情节:5分
人物塑造:7分
主题深度:9分
文字风格:6分
语言运用:8分
文笔流畅:8分
思想传递:9分
知识深度:6分
知识广度:4分
实用性:9分
章节划分:4分
结构布局:5分
新颖与独特:7分
情感共鸣:9分
引人入胜:6分
现实相关:9分
沉浸感:3分
事实准确性:9分
文化贡献:6分