Pytest In Practice


Download Pytest In Practice PDF/ePub or read online books in Mobi eBooks. Click Download or Read Online button to get Pytest In Practice book now. This website allows unlimited access to, at the time of writing, more than 1.5 million titles, including hundreds of thousands of titles in various foreign languages.

Download

Python Testing with Pytest


Python Testing with Pytest

Author: Brian Okken

language: en

Publisher:

Release Date: 2017-09-25


DOWNLOAD





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.

Test-Driven Development with Python


Test-Driven Development with Python

Author: Harry Percival

language: en

Publisher: "O'Reilly Media, Inc."

Release Date: 2017-08-02


DOWNLOAD





By taking you through the development of a real web application from beginning to end, the second edition of this hands-on guide demonstrates the practical advantages of test-driven development (TDD) with Python. You’ll learn how to write and run tests before building each part of your app, and then develop the minimum amount of code required to pass those tests. The result? Clean code that works. In the process, you’ll learn the basics of Django, Selenium, Git, jQuery, and Mock, along with current web development techniques. If you’re ready to take your Python skills to the next level, this book—updated for Python 3.6—clearly demonstrates how TDD encourages simple designs and inspires confidence. Dive into the TDD workflow, including the unit test/code cycle and refactoring Use unit tests for classes and functions, and functional tests for user interactions within the browser Learn when and how to use mock objects, and the pros and cons of isolated vs. integrated tests Test and automate your deployments with a staging server Apply tests to the third-party plugins you integrate into your site Run tests automatically by using a Continuous Integration environment Use TDD to build a REST API with a front-end Ajax interface

Mastering Efficient Software Design Practices


Mastering Efficient Software Design Practices

Author: Paulo Cardoso

language: en

Publisher: Orange Education Pvt Ltd

Release Date: 2025-04-29


DOWNLOAD





TAGLINE Build Secure, Scalable, and Efficient Software with Modern Best Practices. KEY FEATURES ● Master Agile, DevOps, CI/CD, and scalable software architectures ● Ensure code quality, security, and high-performance computing ● Apply real-world best practices with hands-on case studies DESCRIPTION In today’s fast-paced digital era, efficient software design is the key to building secure, scalable, and high-performing applications. Mastering Efficient Software Design Practices serves as a comprehensive guide for developers, engineers, and architects seeking to enhance their technical expertise and streamline software development workflows. This book covers essential principles, from foundational coding methodologies and version control with Git to Agile, DevOps, and Test-Driven Development (TDD). Readers will learn how to implement Continuous Integration and Continuous Delivery (CI/CD), improve code quality, enforce security best practices, and optimize performance. Real-world examples, case studies, and best practices ensure that theoretical concepts translate into practical skills. By the end of this book, readers will have a solid grasp of modern software development methodologies and the confidence to build robust, maintainable, and future-proof software solutions. Whether you're an aspiring developer or an experienced engineer, this book equips you with the tools and insights needed to thrive in today’s evolving tech landscape. Stay ahead of the curve—master these essential practices before you get left behind! WHAT WILL YOU LEARN ● Apply Agile, DevOps, and CI/CD to streamline software development. ● Design secure, scalable, and maintainable software architectures. ● Use Git, Docker, and Kubernetes for seamless team collaboration. ● Write high-quality, testable code with automated testing strategies. ● Optimize software performance and ensure scalability under load. ● Leverage user-centered design and analytics for better UX decisions. WHO IS THIS BOOK FOR? This book is tailored for software developers, engineers, and technical leads looking to enhance their design and development skills. It is also valuable for students, aspiring developers, QA professionals, freelancers, and entrepreneurs with a basic understanding of programming who want to build scalable, secure, and maintainable software. TABLE OF CONTENTS 1. Foundations of Modern Software Development 2. Preparing the Ground work (Development Foundations) 3. Collaborative Development through Version Control 4. Coding Principles for the Modern Developer 5. The Art of Code Testing and TDD 6. Continuous Integration and Delivery (CI/CD) for Seamless Development 7. Mastering Modularity and Documentation 8. Ensuring Code Quality and Maintainability 9. Security Practices, Error Handling, and Logging 10. High-Performance Computing and Scalable Systems 11. The Culture of Code Review and Collaborative Coding 12. Aligning Software Design with User Needs Index