https://github.com/tallamjr/pytest-book
Python Testing with pytest by Brian Okken
https://github.com/tallamjr/pytest-book
book pytest python testing
Last synced: 9 months ago
JSON representation
Python Testing with pytest by Brian Okken
- Host: GitHub
- URL: https://github.com/tallamjr/pytest-book
- Owner: tallamjr
- Created: 2020-06-18T18:26:00.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-07-15T14:29:24.000Z (almost 6 years ago)
- Last Synced: 2025-04-04T17:48:47.220Z (over 1 year ago)
- Topics: book, pytest, python, testing
- Language: Python
- Homepage: https://pragprog.com/titles/bopytest/#resources
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python Testing with `pytest`

> _pytest_:
> Simple, Rapid, Effective and Scalable
• **Unit test**: A test that checks a small bit of code, like a function or a class, in isolation of the
rest of the system.
• **Integration test**: A test that checks a larger bit of the code, maybe several classes, or a
subsystem. Mostly it’s a label used for some test larger than a unit test, but smaller than a system
test.
• **System test (end-to-end)**: A test that checks all of the system under test in an environment as
close to the end-user environment as possible.
• **Functional test**: A test that checks a single bit of functionality of a system. A test that checks
how well we add or delete or update a task item in Tasks is a functional test.
• **Subcutaneous test**: A test that does not run against the final end-user interface, but against an
interface just below the surface. Since most of the tests in this book test against the API
layer—not the CLI—they qualify as subcutaneous tests.
### Chapter 1: Getting Started with `pytest`