People often share CI setups. Here's my local setup for writing and debugging tests: VSCode extensions: - Playwright…
14 discussions
People often share CI setups. Here's my local setup for writing and debugging tests: VSCode extensions: - Playwright…
After three rewrites, here's the conftest.py structure that finally works for our monorepo (4 services, ~800 tests):…
I have a FastAPI service with a well-maintained OpenAPI spec (auto-generated by FastAPI). I want to generate a…
I'm testing a FastAPI application with pytest-asyncio and httpx.AsyncClient and hitting a few rough edges. Issues I've…
Mutation testing (mutmut for Python, Stryker for JS) sounds powerful in theory: introduce small code changes and verify…
Our API test suite uses a real PostgreSQL database (Docker, spun up in CI). Each test creates data and we need…
As our API test suite grows I'm realising ad-hoc test data in each test function is a maintenance nightmare. Three…
We need to parallelise a 600-test pytest suite. Current serial runtime is ~22 minutes, target is under 8 minutes. I've…
We use pytest marks for test organisation: @pytest.mark.slow, @pytest.mark.integration, @pytest.mark.smoke. In theory:…
Our auth tokens expire after 1 hour. Most CI runs complete in 30–40 minutes so it's fine, but nightly full-suite runs…
I need to parametrize a test with inputs that are dictionaries containing lists, some optional keys, and some keys that…
We had a bug where a function-scoped test was accidentally using a session-scoped fixture that mutated shared state.…
I'm working on a fairly large test project (~500 tests across 3 microservices) and our conftest.py files are getting…
0 votes · select an option to vote