Testimi & QA

Parallel test execution & sharding

Në shqip: Ekzekutimi paralel i testeve

ShpjegimiSQ

Kur suita e testeve zgjat 40 minuta, ndaje: ekzekuto testet paralelisht në disa procese ose makina („sharding“). Playwright, pytest-xdist dhe Jest e mbështesin — por testet duhet të jenë të pavarura.

EnglishEN

When the test suite takes 40 minutes, split it: run tests in parallel across several processes or machines (“sharding”). Playwright, pytest-xdist and Jest support it — but tests must be independent.

Si ta mendosh

Si të hapësh më shumë arka në supermarket.

Lexoje në anglisht

Like opening more tills in a supermarket.

Shembull kodibash

npx playwright test --shard=1/4
pytest -n auto

Terma të lidhur