mirror of
https://github.com/realm/SwiftLint.git
synced 2026-05-07 20:12:49 +00:00
3c2f4e31c9
Split the monolithic GeneratedTests target (242 test classes) into 10 sharded targets with ~25 tests each to enable parallel test execution. Reduces test time from 85.4s to 36.7s (57% improvement) by running shards concurrently. Most shards finish in 2-8s with 2 outliers at 30-37s. The implementation automatically scales with new rules and provides parallel test execution with improved code maintainability.
22 lines
967 B
Python
22 lines
967 B
Python
# GENERATED FILE. DO NOT EDIT!
|
|
|
|
load(":test_macros.bzl", "generated_test_shard")
|
|
|
|
def generated_tests(copts, strict_concurrency_copts):
|
|
"""Creates all generated test targets for SwiftLint rules.
|
|
|
|
Args:
|
|
copts: Common compiler options
|
|
strict_concurrency_copts: Strict concurrency compiler options
|
|
"""
|
|
generated_test_shard("01", copts, strict_concurrency_copts)
|
|
generated_test_shard("02", copts, strict_concurrency_copts)
|
|
generated_test_shard("03", copts, strict_concurrency_copts)
|
|
generated_test_shard("04", copts, strict_concurrency_copts)
|
|
generated_test_shard("05", copts, strict_concurrency_copts)
|
|
generated_test_shard("06", copts, strict_concurrency_copts)
|
|
generated_test_shard("07", copts, strict_concurrency_copts)
|
|
generated_test_shard("08", copts, strict_concurrency_copts)
|
|
generated_test_shard("09", copts, strict_concurrency_copts)
|
|
generated_test_shard("10", copts, strict_concurrency_copts)
|