Paralelismo de Testes - Definição do Glossário CI/CD
Paralelismo de testes é executar uma suíte de testes em vários workers, processos ou máquinas ao mesmo tempo para reduzir o tempo de relógio. A suíte é dividida em shards que executam de forma concorrente.
Como acelera a CI
Uma suíte serial de 20 minutos dividida em 4 shards termina em cerca de 5 minutos mais o overhead. O GitHub Actions faz isso com strategy.matrix; runners como pytest-xdist (-n auto) paralelizam dentro de uma única máquina.
O problema
O paralelismo expõe testes que compartilham estado. Testes que passam em série mas falham quando executados juntos normalmente vazam fixtures ou dependem da ordem de execução.
Guias relacionados
Matrix Build - CI/CD Glossary DefinitionMatrix Build: A **matrix build** expands one job into many parallel jobs across combinations of variables (ve…
Test Isolation - CI/CD Glossary DefinitionTest isolation ensures each test runs independently with its own clean state, so ordering and shared data can…
Test Runner - CI/CD Glossary DefinitionTest Runner: A test runner is the tool that discovers test cases, executes them, and reports pass/fail result…