
۴۴٬۰۰۰تومان
نوع فایل دانلود: EPUB
پس از خرید، یک فایل EPUB دریافت میکنید.
این فایل با Calibre، Apple Books و سایر کتابخوانهای دیجیتال مناسب است.
**با اصول توسعه مبتنی بر آزمون، برنامههای پایتون باکیفیت و قابل نگهداری بسازید**
درباره این کتاب
* با اصول توسعه مبتنی بر آزمون، کدی محکم و آسان برای نگهداری بنویسید
* برای مشکلات واقعی که برنامهنویسان پایتون با آن روبهرو میشوند، راهحل بگیرید
* با مجموعهای از آموزشهای گامبهگام و ساده، از مبتدی آزمون واحد به سطح حرفهای برسید
این کتاب برای چه کسانی است
این کتاب برای برنامهنویسان پایتون است که میخواهند با اصول توسعه مبتنی بر آزمون (TDD) برنامههایی کارآمد و محکم بسازند. برای بهره بردن هرچه بیشتر از این کتاب، بهتر است تجربهٔ برنامهنویسی با پایتون داشته باشید.
چه چیزهایی یاد میگیرید
* فرایند توسعه مبتنی بر آزمون را در برنامههای پایتون پیاده کنید
* از ماژولهای قدرتمند و داخلی پایتون، یعنی unittest و doctest، بهطور کامل استفاده کنید
* به پایگاههای کدی که هیچ آزمونی ندارند، بهشکل مؤثر قابلیت اضافه کنید
* مشکلات کد و طراحی را بدون خراب کردن کارکرد برنامه، بهصورت امن برطرف کنید
* از قابلیتهای قدرتمند mock و patch در پایتون برای آزمودن تعاملهای پیچیده بهره ببرید
* آزمون واحد را در کل فرایند تحویل نرمافزار بگنجانید
* با doctest، کد را بهکمک مثال بیازمایید
* با ابزار اجرای آزمون nose2، کار با TDD را تقویت کنید
با جزئیات بیشتر
این کتاب با نگاهی به فرایند توسعه مبتنی بر آزمون آغاز میشود و نشان میدهد این روش چه تفاوتی با شیوهٔ سنتی نوشتن کد دارد. همهٔ مفاهیم در بستر یک برنامهٔ واقعی مطرح میشوند؛ برنامهای که در طول کتاب گامبهگام ساخته میشود. ضمن بررسی انواع رایج کدهای بدبو، به پروژهٔ نمونه برمیگردیم و بوهایی را که پیدا میکنیم پاک میکنیم. همچنین با استفاده از ماکینگ، بخشهایی از پروژهٔ نمونه را که به سیستمهای دیگر وابستهاند پیاده میکنیم. در پایان کتاب، رایجترین الگوها و پادالگوهای مرتبط با توسعه مبتنی بر آزمون را بررسی میکنیم؛ از جمله ادغام نتایج آزمون در فرایند توسعه.
**Develop high-quality and maintainable Python applications using the principles of test-driven development**About This Book* Write robust and easily maintainable code using the principles of test driven development* Get solutions to real-world problems faced by Python developers* Go from a unit testing beginner to a master through a series of step-by-step tutorials that are easy to followWho This Book Is ForThis book is intended for Python developers who want to use the principles of test-driven development (TDD) to create efficient and robust applications. In order to get the best out of this book, you should have development experience with Python.What You Will Learn* Implement the test-driven development process in Python applications* Fully leverage Python's powerful built-in unittest and doctest modules* Effectively add features to existing code bases that do not have any tests* Safely resolve problems with the code and design, without breaking any functionality* Utilize Python's powerful mock and patch functionality to test complex interactions* Integrate unit testing into the overall software delivery process* Use doctest to test code with examples* Enhance TDD with the nose2 test runnerIn DetailThis book starts with a look at the test-driven development process, and how it is different from the traditional way of writing code. All the concepts are presented in the context of a real application that is developed in a step-by-step manner over the course of the book. While exploring the common types of smelly code, we will go back into our example project and clean up the smells that we find.Additionally, we will use mocking to implement the parts of our example project that depend on other systems. Towards the end of the book, we'll take a look at the most common patterns and anti-patterns associated with test-driven development, including integration of test results into the development process.