Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chris-crone/example-pytest
Example of isolating and speeding up pytests with Docker Build
https://github.com/chris-crone/example-pytest
Last synced: 19 days ago
JSON representation
Example of isolating and speeding up pytests with Docker Build
- Host: GitHub
- URL: https://github.com/chris-crone/example-pytest
- Owner: chris-crone
- License: cc0-1.0
- Created: 2024-09-05T12:15:45.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-20T13:35:07.000Z (4 months ago)
- Last Synced: 2024-10-28T20:08:41.138Z (2 months ago)
- Language: Dockerfile
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pytest using Docker Build
---Running pytest unit tests inside Docker Build allows them to be isolated,
repeatable, and fast.
This repo is a very simple example showing how to do this.# Prerequisites
It goes without saying but you need a recent version of Docker installed on your
system.
You do not need Python or any other dependencies!# Running the tests
The tests can be run using `docker buildx bake testall`, optionally with
`--progress plain` to see the full output.To only run tests that previously failed, run `docker buildx bake testfailed`,
optionally with `--progress plain` to see the full output.# Clearing the test cache
To clear the test cache, run `docker buildx bake clean`.