توضیحات
Test applications, packages, and libraries large and small with pytest, Python’s most powerful testing framework. pytest helps you write tests quickly and keep them readable and maintainable. In this fully revised edition, explore pytest’s superpowers – simple asserts, fixtures, parametrization, markers, and plugins – while creating simple tests and test suites against a small database application. 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. This book shows you how.
pytest is undeniably the best choice for testing Python projects. It’s a full-featured, flexible, and extensible testing framework. pytest’s fixture model allows you to share test data and setup procedures across multiple layers of tests. The pytest framework gives you powerful features such as assert rewriting, parametrization, markers, plugins, parallel test execution, and clear test failure reporting – 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 yet powerful tool. Write short, maintainable tests that elegantly express what you’re testing. Speed up test times by distributing tests across multiple processors and running tests in parallel. Use Python’s builtin assert statements instead of awkward assert helper functions to make your tests more readable. Move setup code out of tests and into fixtures to separate setup failures from 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, and even existing unittest tests.
Write simple, maintainable tests quickly with pytest.
————————————————————–
ترجمه ماشینی :
برنامه ها، بسته ها و کتابخانه های بزرگ و کوچک را با pytest، قدرتمندترین چارچوب تست پایتون، آزمایش کنید. pytest به شما کمک می کند تا تست ها را سریع بنویسید و آنها را خوانا و قابل نگهداری نگه دارید. در این نسخه کاملاً اصلاحشده، قدرتهای فوقالعاده pytest – ادعاهای ساده، فیکسچرها، پارامترسازی، نشانگرها و پلاگینها – را در حین ایجاد تستهای ساده و مجموعههای آزمایشی در برابر یک برنامه پایگاه داده کوچک بررسی کنید. با استفاده از یک مدل فیکسچر قوی و در عین حال ساده، نوشتن تست های کوچک با pytest به همان اندازه آسان است که مقیاس آن را تا تست های عملکردی پیچیده انجام دهید. این کتاب به شما نشان می دهد که چگونه. \ pytest بدون شک بهترین انتخاب برای آزمایش پروژه های پایتون است. این یک چارچوب آزمایشی با امکانات کامل، انعطافپذیر و قابل توسعه است. مدل فیکسچر pytest به شما امکان می دهد داده های تست و روش های راه اندازی را در چندین لایه آزمایش به اشتراک بگذارید. چارچوب pytest به شما ویژگیهای قدرتمندی مانند بازنویسی، پارامترسازی، نشانگرها، پلاگینها، اجرای آزمایش موازی، و گزارش شکست تست واضح – بدون کد دیگ بخار را به شما میدهد. با دستورالعمل های گام به گام ساده و کد نمونه، این کتاب شما را به سرعت در این ابزار آسان برای یادگیری و در عین حال قدرتمند می رساند. تست های کوتاه و قابل نگهداری بنویسید که به زیبایی آنچه را که آزمایش می کنید بیان می کند. با توزیع تستها در چندین پردازنده و اجرای آزمایشها به صورت موازی، زمانهای تست را افزایش دهید. از عبارات ادعای داخلی پایتون به جای توابع کمکی نامطلوب استفاده کنید تا تست های خود را خواناتر کنید. کد راهاندازی را به خارج از تستها و به فیکسچرها منتقل کنید تا خرابیهای راهاندازی را از شکستهای تست جدا کنید. شرایط خطا و موارد گوشه را با آزمایش استثنای مورد انتظار آزمایش کنید و از یک تست برای اجرای بسیاری از موارد آزمایشی با آزمایش پارامتری شده استفاده کنید. pytest را با پلاگین ها گسترش دهید، آن را به سیستم های یکپارچه سازی پیوسته متصل کنید و از آن در کنار تست های tox، mock، coverage و حتی واحد تست موجود استفاده کنید. تست های ساده و قابل نگهداری را به سرعت با pytest بنویسید.
tag : دانلود کتاب تست پایتون با pytest: ساده، سریع، موثر و مقیاس پذیر , Download تست پایتون با pytest: ساده، سریع، موثر و مقیاس پذیر , دانلود تست پایتون با pytest: ساده، سریع، موثر و مقیاس پذیر , Download Python Testing with pytest: Simple, Rapid, Effective, and Scalable Book , تست پایتون با pytest: ساده، سریع، موثر و مقیاس پذیر دانلود , buy تست پایتون با pytest: ساده، سریع، موثر و مقیاس پذیر , خرید کتاب تست پایتون با pytest: ساده، سریع، موثر و مقیاس پذیر , دانلود کتاب Python Testing with pytest: Simple, Rapid, Effective, and Scalable , کتاب Python Testing with pytest: Simple, Rapid, Effective, and Scalable , دانلود Python Testing with pytest: Simple, Rapid, Effective, and Scalable , خرید Python Testing with pytest: Simple, Rapid, Effective, and Scalable , خرید کتاب Python Testing with pytest: Simple, Rapid, Effective, and Scalable ,

نقد و بررسیها
هنوز بررسیای ثبت نشده است.