0 رای
وضعیت موجودی موجود

قیمت قبلی: 2,960,000 ریال
قیمت: 2,560,000 ریال

 



Product details

  • ASIN ‏ : ‎ 1680502409
  • Publisher ‏ : ‎ Pragmatic Bookshelf; 1st edition (October 10, 2017)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 216 pages
  • ISBN-10 ‏ : ‎ 9781680502404
  • ISBN-13 ‏ : ‎ 978-1680502404

 

کتاب Python Testing with pytest: Simple, Rapid, Effective, and Scalable 1st Edition

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: Simple, Rapid, Effective, and Scalable 1st Edition

هنگام تست کد پایتون کار کمتری انجام دهید، اما به همان اندازه رسا، زیبا و به همان اندازه خوانا باشید. چارچوب تست pytest به شما کمک می کند تا تست ها را سریع بنویسید و آنها را خوانا و قابل نگهداری نگه دارید - بدون کد دیگ بخار. با استفاده از یک مدل فیکسچر قوی و در عین حال ساده، نوشتن تست های کوچک با pytest به همان اندازه آسان است که برای برنامه ها، بسته ها و کتابخانه ها تا تست های عملکردی پیچیده افزایش یابد. این کتاب به شما نشان می دهد که چگونه.

برای پروژه‌های مبتنی بر پایتون، اگر به دنبال یک چارچوب آزمایشی با ویژگی‌های کامل، مستقل از API، انعطاف‌پذیر و قابل توسعه هستید، pytest گزینه غیرقابل انکاری برای آزمایش کد شما است. چارچوب pytest با یک مدل ثابت کامل که با هیچ ابزار دیگری قابل مقایسه نیست، ویژگی‌های قدرتمندی مانند بازنویسی مجدد و قابلیت اتصال - بدون کد دیگ بخار را به شما می‌دهد.

با دستورالعمل های گام به گام ساده و کد نمونه، این کتاب شما را به سرعت در مورد این ابزار آسان برای یادگیری و قوی می رساند. تست های کوتاه و قابل نگهداری بنویسید که به زیبایی آنچه را که آزمایش می کنید بیان می کند. ویژگی‌های تست قدرتمند را اضافه کنید و با توزیع تست‌ها در چندین پردازنده و اجرای آزمایش‌ها به صورت موازی، زمان تست را افزایش دهید. برای کاهش خطاهای آزمایش نادرست با جدا کردن خطاهای راه‌اندازی و آزمایش، از عبارات ادعای داخلی استفاده کنید. شرایط خطا و موارد گوشه را با آزمایش استثنای مورد انتظار آزمایش کنید و از یک تست برای اجرای بسیاری از موارد آزمایشی با آزمایش پارامتری استفاده کنید. pytest را با افزونه ها گسترش دهید، آن را به سیستم های یکپارچه سازی پیوسته متصل کنید و از آن در کنار tox، mock، coverage، unittest و doctest استفاده کنید.

تست‌های ساده و قابل نگهداری بنویسید که به زیبایی آنچه را که آزمایش می‌کنید و چرایی آن را بیان می‌کند.

آنچه شما نیاز دارید:

مثال های این کتاب با استفاده از Python 3.6 و pytest 3.0 نوشته شده است. با این حال، pytest 3.0 از Python 2.6، 2.7 و Python 3.3-3.6 پشتیبانی می کند.

نظرات کاربران درباره کتاب Python Testing with pytest: Simple, Rapid, Effective, and Scalable 1st Edition

نظری در مورد این محصول توسط کاربران ارسال نگردیده است.
اولین نفری باشید که در مورد کتاب Python Testing with pytest: Simple, Rapid, Effective, and Scalable 1st Edition نظر می دهد.

ارسال نظر درباره کتاب Python Testing with pytest: Simple, Rapid, Effective, and Scalable 1st Edition

لطفا توجه داشته باشید که ایمیل شما منتشر نخواهد شد.

بر اساس سلیقه شما...

Product details Publisher ‏ : ‎  McGraw-Hill Osborne Medi ...
9,520,000 ریال

codebazan

طراحی و اجرا: فروشگاه ساز سبدخرید