Skyramp Test
Parallelism
Parallelism
Introduction
As your test suite grows, you can execute tests faster by executing multiple tests or test components in parallel. You can increase your testing speed by running tests concurrently within a single worker or deploy multiple workers for parallel execution.
Parallelism with tester_start_v1
When you call the tester_start_v1
function twice in Python, it implicitly triggers the execution of two tests in parallel without requiring any additional user configuration. This inherent capability of Skyramp facilitates seamless parallel testing, allowing users to harness the power of concurrency effortlessly. By executing tests concurrently, Skyramp optimizes test execution time and resource utilization, leading to faster feedback and improved testing efficiency.
Deploying Multiple Workers for Parallel Execution
To scale up testing further and enable parallel execution across multiple workers, you can deploy additional worker instances using Docker Compose. The following Docker Compose configuration demonstrates how to launch two workers within the same network, enabling them to execute separate tests and share the same dashboard:
Scalability: You can easily scale the number of workers by adding more service definitions for
skyramp
.Shared Dashboard: Both workers share the same dashboard setup (
dashboard-server
anddashboard-client
), providing unified monitoring and reporting capabilities across the testing infrastructure.Resource Management: Docker Compose handles resource allocation and network configuration, ensuring seamless communication between workers and the dashboard components.
By deploying multiple workers within the same environment, you can achieve efficient parallel testing while maintaining centralized management through a shared dashboard. You can choose which worker to execute tests by setting address
param in tester_start_v1
. In above docker-compose.yaml
, it would be one of localhost:35142
and localhost:35143
.