چه کسانی این کتاب را می‌خوانند

دانشجوعلاقه‌مند یادگیری
کتابخوان حرفه‌ایلذت مطالعه
نویسندهالهام‌گیری

CRAFTING TEST-DRIVEN SOFTWARE WITH PYTHON write test suites that scale with your applications... needs and complexity, using python and pytest

Alessandro Molina

قیمت نهایی

۴۴٬۰۰۰ تومان۴۹٬۰۰۰ تومان۱۰٪ تخفیف
  • تخفیف زمان‌دار−۵٬۰۰۰ تومان

۵٬۰۰۰ تومان صرفه‌جویی نسبت به قیمت اصلی

نسخه اصلی و اورجینال

بلافاصله پس از خرید، فایل کتاب روی دستگاه شما آمادهٔ دانلود است.

تحویل فوری
پرداخت امن
ضمانت فایل
پشتیبانی

مشخصات کتاب

نویسنده
Alessandro Molina
سال انتشار
۲۰۲۱
فرمت
PDF
زبان
انگلیسی
تعداد صفحات
۵ صفحه
حجم فایل
۴٫۳ مگابایت
شابک
9781838642655، 9781838643911، 183864265X، 1838643915

دربارهٔ کتاب

Product DescriptionGet to grips with essential concepts and step-by-step explanations to apply TDD practices to your Python projects while keeping your test suite under controlKey FeaturesBuild robust Python applications using TDD and BDD methodologiesTest Python web applications using WebTest and web frameworksLeverage PyTest to implement stringent testing mechanisms to ensure fault-tolerant applicationsBook DescriptionTest-driven development (TDD) is a set of best practices that helps developers to build more scalable software and is used to increase the robustness of software by using automatic tests. This book shows you how to apply TDD practices effectively in Python projects.You’ll begin by learning about built-in unit tests and Mocks before covering rich frameworks like PyTest and web-based libraries such as WebTest and Robot Framework, discovering how Python allows you to embrace all modern testing practices with ease. Moving on, you’ll find out how to design tests and balance them with new feature development and learn how to create a complete test suite with PyTest. The book helps you adopt a hands-on approach to implementing TDD and associated methodologies that will have you up and running and make you more productive in no time. With the help of step-by-step explanations of essential concepts and practical examples, you’ll explore automatic tests and TDD best practices and get to grips with the methodologies and tools available in Python for creating effective and robust applications.By the end of this Python book, you will be able to write reliable test suites in Python to ensure the long-term resilience of your application using the range of libraries offered by Python for testing and development.What you will learnFind out how tests can make your life easier as a developer and discover related best practicesExplore PyTest, the most widespread testing framework for PythonGet to grips with the most common PyTest plugins, including coverage, flaky, xdist, and pickedWrite functional tests for WSGI web applications with WebTestRun end-to-end tests for web applications using Robot FrameworkUnderstand what test-driven development means and why it is importantDiscover how to use the range of tools available in PythonBuild reliable and robust applicationsWho this book is forThis book is for Python developers looking to get started with test-driven development and developers who want to learn about the testing tools available in Python. Developers who want to create web applications with Python and plan to implement TDD methodology with PyTest will find this book useful. Basic knowledge of Python programming is required.Table of ContentsGetting Started with Software TestingTest Doubles with a Chat ApplicationTest-Driven Development while Creating a TODO ListScaling the Test SuiteIntroduction to PyTestDynamic and Parametric Tests and FixturesFitness Function with a Contact Book ApplicationPyTest Essential PluginsManaging Test Environments with ToxTesting Documentation and Property-Based Testing Cover Title Page Copyright and Credits Dedication Contributors Table of Contents Preface Section 1: Software Testing and Test-Driven Development Chapter 1: Getting Started with Software Testing Technical requirements Introducing software testing and quality control Test plans Introducing automatic tests and test suites Multiple test cases Organizing tests Introducing test-driven development and unit tests Test-driven development Test units Understanding integration and functional tests Integration tests Functional tests Understanding the testing pyramid and trophy The testing pyramid The testing trophy Testing distribution and coverage Summary Chapter 2: Test Doubles with a Chat Application Technical requirements Introducing test doubles Starting our chat application with TDD Using dummy objects Replacing components with stubs Checking behaviors with spies Using mocks Replacing dependencies with fakes Understanding acceptance tests and doubles Managing dependencies with dependency injection Using dependency injection frameworks Summary Chapter 3: Test-Driven Development while Creating a TODO List Technical requirements Starting projects with TDD Building applications the TDD way Preventing regressions Summary Chapter 4: Scaling the Test Suite Technical requirements Scaling tests Moving from e2e to functional Working with multiple suites Compile suite Commit tests Smoke tests Carrying out performance testing Enabling continuous integration Performance testing in the cloud Summary Section 2: PyTest for Python Testing Chapter 5: Introduction to PyTest Technical requirements Running tests with PyTest Writing PyTest fixtures Using fixtures for dependency injection Managing temporary data with tmp_path Testing I/O with capsys Running subsets of the testsuite Summary Chapter 6: Dynamic and Parametric Tests and Fixtures Technical requirements Configuring the test suite Generating fixtures Generating tests with parametric tests Summary Chapter 7: Fitness Function with a Contact Book Application Technical requirements Writing acceptance tests Writing the first test Getting feedback from the product team Making the test pass Using behavior-driven development Defining a feature file Declaring the scenario Running the scenario test Further setup with the And step Performing actions with the When step Assessing conditions with the Then step Making the scenario pass Embracing specifications by example Summary Chapter 8: PyTest Essential Plugins Technical requirements Using pytest-cov for coverage reporting Coverage as a service Using pytest-benchmark for benchmarking Comparing benchmark runs Using flaky to rerun unstable tests Using pytest-testmon to rerun tests on code changes Running tests in parallel with pytest-xdist Summary Chapter 9: Managing Test Environments with Tox Technical requirements Introducing Tox Testing multiple Python versions with Tox Using environments for more than Python versions Using Tox with Travis Summary Chapter 10: Testing Documentation and Property-Based Testing Technical requirements Testing documentation Adding a code-based reference Writing a verified user guide Property-based testing Generating tests for common properties Summary Section 3: Testing for the Web Chapter 11: Testing for the Web: WSGI versus HTTP Technical requirements Testing HTTP Testing HTTP clients Testing WSGI with WebTest Using WebTest with web frameworks Writing Django tests with Django's test client Testing Django projects with pytest Testing Django projects with Django's test client Summary Chapter 12: End-to-End Testing with the Robot Framework Technical requirements Introducing the Robot Framework Testing with web browsers Recording the execution of tests Testing with headless browsers Testing multiple browsers Extending the Robot Framework Adding custom keywords Extending Robot from Python Summary About Packt Other Books You May Enjoy Index Get to grips with essential concepts and step-by-step explanations to apply TDD practices to your Python projects while keeping your test suite under control Key FeaturesBuild robust Python applications using TDD and BDD methodologiesTest Python web applications using WebTest and web frameworksLeverage PyTest to implement stringent testing mechanisms to ensure fault-tolerant applicationsBook DescriptionTest-driven development (TDD) is a set of best practices that helps developers to build more scalable software and is used to increase the robustness of software by using automatic tests. This book shows you how to apply TDD practices effectively in Python projects. Youll begin by learning about built-in unit tests and Mocks before covering rich frameworks like PyTest and web-based libraries such as WebTest and Robot Framework, discovering how Python allows you to embrace all modern testing practices with ease. Moving on, youll find out how to design tests and balance them with new feature development and learn how to create a complete test suite with PyTest. The book helps you adopt a hands-on approach to implementing TDD and associated methodologies that will have you up and running and make you more productive in no time. With the help of step-by-step explanations of essential concepts and practical examples, youll explore automatic tests and TDD best practices and get to grips with the methodologies and tools available in Python for creating effective and robust applications. By the end of this Python book, you will be able to write reliable test suites in Python to ensure the long-term resilience of your application using the range of libraries offered by Python for testing and development. What you will learnFind out how tests can make your life easier as a developer and discover related best practicesExplore PyTest, the most widespread testing framework for PythonGet to grips with the most common PyTest plugins, including coverage, flaky, xdist, and pickedWrite functional tests for WSGI web applications with WebTestRun end-to-end tests for web applications using Robot FrameworkUnderstand what test-driven development means and why it is importantDiscover how to use the range of tools available in PythonBuild reliable and robust applicationsWho this book is forThis book is for Python developers looking to get started with test-driven development and developers who want to learn about the testing tools available in Python. Developers who want to create web applications with Python and plan to implement TDD methodology with PyTest will find this book useful. Basic knowledge of Python programming is required. Table of ContentsGetting Started with Software TestingTest Doubles with a Chat ApplicationTest-Driven Development while Creating a TODO ListScaling the Test SuiteIntroduction to PyTestDynamic and Parametric Tests and FixturesFitness Function with a Contact Book ApplicationPyTest Essential PluginsManaging Test Environments with ToxTesting Documentation and Property-Based TestingTesting for the WSGI versus HTTPEnd-to-End Testing with the Robot Framework BGet to grips with essential concepts and step-by-step explanations to apply TDD practices to your Python projects while keeping your test suite under control/bh4Key Features/h4ulliBuild robust Python applications using TDD and BDD methodologies/liliTest Python web applications using WebTest and web frameworks/liliLeverage PyTest to implement stringent testing mechanisms to ensure fault-tolerant applications/li/ulh4Book Description/h4Test-driven development (TDD) is a set of best practices that helps developers to build more scalable software and is used to increase the robustness of software by using automatic tests. This book shows you how to apply TDD practices effectively in Python projects. You'll begin by learning about built-in unit tests and Mocks before covering rich frameworks like PyTest and web-based libraries such as WebTest and Robot Framework, discovering how Python allows you to embrace all modern testing practices with ease. Moving on, you'll find out how to design tests and balance them with new feature development and learn how to create a complete test suite with PyTest. The book helps you adopt a hands-on approach to implementing TDD and associated methodologies that will have you up and running and make you more productive in no time. With the help of step-by-step explanations of essential concepts and practical examples, you'll explore automatic tests and TDD best practices and get to grips with the methodologies and tools available in Python for creating effective and robust applications. By the end of this Python book, you will be able to write reliable test suites in Python to ensure the long-term resilience of your application using the range of libraries offered by Python for testing and development.h4What you will learn/h4ulliFind out how tests can make your life easier as a developer and discover related best practices/liliExplore PyTest, the most widespread testing framework for Python/liliGet to grips with the most common PyTest plugins, including coverage, flaky, xdist, and picked/liliWrite functional tests for WSGI web applications with WebTest/liliRun end-to-end tests for web applications using Robot Framework/liliUnderstand what test-driven development means and why it is important/liliDiscover how to use the range of tools available in Python/liliBuild reliable and robust applications/li/ulh4Who this book is for/h4This book is for Python developers looking to get started with test-driven development and developers who want to learn about the testing tools available in Python. Developers who want to create web applications with Python and plan to implement TDD methodology with PyTest will find this book useful. Basic knowledge of Python programming is required Get to grips with essential concepts and step-by-step explanations to apply TDD practices to your Python projects while keeping your test suite under control Key Features • Build robust Python applications using TDD and BDD methodologies • Test Python web applications using WebTest and web frameworks • Leverage PyTest to implement stringent testing mechanisms to ensure fault-tolerant applications Book Description Test-driven development (TDD) is a set of best practices that helps developers to build more scalable software, and is used to increase the robustness of software by using automatic tests. This book shows you how to apply TDD practices efficiently in Python projects. You'll begin by learning about built-in unit tests and Mocks before covering rich frameworks like PyTest and web-based libraries such as WebTest and Robot, and understand how Python allows you to embrace all modern testing practices with ease. Moving on, you'll find out how to design tests and balance them with new feature development and discover how to create a complete test suite with PyTest. The book helps you adopt a hands-on approach to implementing TDD and associated methodologies that will have you up and running and make you more productive in no time. With the help of step-by-step explanations of essential concepts and practical examples, you'll explore automatic tests and TDD best practices and get to grips with the methodologies and tools available in Python for creating effective and robust applications. By the end of this Python book, you will be able to write reliable test suites in Python to ensure the long-term resilience of your application while learning about the range of libraries offered by Python for testing and development. What you will learn • Find out how tests can make your life easier as a developer and discover related best practices • Explore and learn PyTest, the most widespread testing framework for Python • Get to grips with the most common PyTest plugins, including coverage, flaky, xdist, and picked • Write functional tests for WSGI web applications with WebTest • Run end-to-end tests for web applications using the Robot framework • Understand what test-driven development means and why it is important • Discover how to use the range of tools available in Python • Build reliable and robust applications Who This Book Is For This book is for Python developers looking to get started with test-driven development and developers who want to learn about the testing tools available in Python. Developers who want to create web applications with Python and plan to implement TDD methodology with PyTest will find this book useful. Basic knowledge of Python programming is required. Get to grips with essential concepts and step-by-step explanations to apply TDD practices to your Python projects while keeping your test suite under control Key Features Build robust Python applications using TDD and BDD methodologies Test Python web applications using WebTest and web frameworks Leverage PyTest to implement stringent testing mechanisms to ensure fault-tolerant applications Book Description Test-driven development (TDD) is a set of best practices that helps developers to build more scalable software and is used to increase the robustness of software by using automatic tests. This book shows you how to apply TDD practices effectively in Python projects. You'll begin by learning about built-in unit tests and Mocks before covering rich frameworks like PyTest and web-based libraries such as WebTest and Robot Framework, discovering how Python allows you to embrace all modern testing practices with ease. Moving on, you'll find out how to design tests and balance them with new feature development and learn how to create a complete test suite with PyTest. The book helps you adopt a hands-on approach to implementing TDD and associated methodologies that will have you up and running and make you more productive in no time. With the help of step-by-step explanations of essential concepts and practical examples, you'll explore automatic tests and TDD best practices and get to grips with the methodologies and tools available in Python for creating effective and robust applications. By the end of this Python book, you will be able to write reliable test suites in Python to ensure the long-term resilience of your application using the range of libraries offered by Python for testing and development. What you will learn Find out how tests can make your life easier as a developer and discover related best practices Explore PyTest, the most widespread testing framework for Python Get to grips with the most common PyTest plugins, including coverage, flaky, xdist, and picked Write functional tests for WSGI web applications with WebTest Run end-to-end tests for web applications using Robot Framework Understand what test-driven development means and why it is important Discover how to use the range of tools available in Python Build reliable and robust applications Who this book is for This book is for Python developers looking to get started with test-driven development and developers who want to learn about the testing tools available in Python. Developers who want to create web applications with Python and plan to implement TDD methodology with PyTest will find this book useful. Basic knowledge of Python programming is required. This practical guide to test-driven development will help developers working with Python put their knowledge to work. You’ll learn how to adopt an effective test-driven approach to Python software development with WebTest and web frameworks. The book is filled with hands-on examples to enable you to write reliable test suites to ensure your ...

قیمت نهایی

۴۴٬۰۰۰ تومان