You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add collect_code_coverage attribute to tests (#2705)
Code coverage is only collected when `True` (the default). This allows
individual targets to opt out of code coverage collection, which can be
useful in some cases, like UI tests.
Signed-off-by: Brentley Jones <[email protected]>
| <aid="ios_ui_test-data"></a>data | Files to be made available to the test during its execution. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
596
596
| <aid="ios_ui_test-bundle_name"></a>bundle_name | The desired name of the bundle (without the extension). If this attribute is not set, then the name of the target will be used instead. | String | optional |`""`|
597
+
| <aid="ios_ui_test-collect_code_coverage"></a>collect_code_coverage | Whether to collect code coverage for this test if `--collect_code_coverage=yes`. | Boolean | optional |`True`|
597
598
| <aid="ios_ui_test-env"></a>env | Dictionary of environment variables that should be set during the test execution. The values of the dictionary are subject to "Make" variable expansion. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
598
599
| <aid="ios_ui_test-env_inherit"></a>env_inherit | List of environment variables to inherit from the external environment. | List of strings | optional |`[]`|
599
600
| <aid="ios_ui_test-minimum_deployment_os_version"></a>minimum_deployment_os_version | A required string indicating the minimum deployment OS version supported by the target, represented as a dotted version number (for example, "9.0"). This is different from `minimum_os_version`, which is effective at compile time. Ensure version specific APIs are guarded with `available` clauses. | String | optional |`""`|
@@ -611,9 +612,9 @@ of the attributes inherited by all test rules, please check the
| <aid="ios_unit_test-data"></a>data | Files to be made available to the test during its execution. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
647
648
| <aid="ios_unit_test-bundle_name"></a>bundle_name | The desired name of the bundle (without the extension). If this attribute is not set, then the name of the target will be used instead. | String | optional |`""`|
649
+
| <aid="ios_unit_test-collect_code_coverage"></a>collect_code_coverage | Whether to collect code coverage for this test if `--collect_code_coverage=yes`. | Boolean | optional |`True`|
648
650
| <aid="ios_unit_test-env"></a>env | Dictionary of environment variables that should be set during the test execution. The values of the dictionary are subject to "Make" variable expansion. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
649
651
| <aid="ios_unit_test-env_inherit"></a>env_inherit | List of environment variables to inherit from the external environment. | List of strings | optional |`[]`|
650
652
| <aid="ios_unit_test-minimum_deployment_os_version"></a>minimum_deployment_os_version | A required string indicating the minimum deployment OS version supported by the target, represented as a dotted version number (for example, "9.0"). This is different from `minimum_os_version`, which is effective at compile time. Ensure version specific APIs are guarded with `available` clauses. | String | optional |`""`|
| <aid="macos_ui_test-data"></a>data | Files to be made available to the test during its execution. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
638
638
| <aid="macos_ui_test-bundle_name"></a>bundle_name | The desired name of the bundle (without the extension). If this attribute is not set, then the name of the target will be used instead. | String | optional |`""`|
639
+
| <aid="macos_ui_test-collect_code_coverage"></a>collect_code_coverage | Whether to collect code coverage for this test if `--collect_code_coverage=yes`. | Boolean | optional |`True`|
639
640
| <aid="macos_ui_test-env"></a>env | Dictionary of environment variables that should be set during the test execution. The values of the dictionary are subject to "Make" variable expansion. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
640
641
| <aid="macos_ui_test-env_inherit"></a>env_inherit | List of environment variables to inherit from the external environment. | List of strings | optional |`[]`|
641
642
| <aid="macos_ui_test-minimum_deployment_os_version"></a>minimum_deployment_os_version | A required string indicating the minimum deployment OS version supported by the target, represented as a dotted version number (for example, "9.0"). This is different from `minimum_os_version`, which is effective at compile time. Ensure version specific APIs are guarded with `available` clauses. | String | optional |`""`|
@@ -653,9 +654,9 @@ Note: macOS UI tests are not currently supported in the default test runner.
| <aid="macos_unit_test-data"></a>data | Files to be made available to the test during its execution. | <ahref="https://bazel.build/concepts/labels">List of labels</a> | optional |`[]`|
680
681
| <aid="macos_unit_test-bundle_name"></a>bundle_name | The desired name of the bundle (without the extension). If this attribute is not set, then the name of the target will be used instead. | String | optional |`""`|
682
+
| <aid="macos_unit_test-collect_code_coverage"></a>collect_code_coverage | Whether to collect code coverage for this test if `--collect_code_coverage=yes`. | Boolean | optional |`True`|
681
683
| <aid="macos_unit_test-env"></a>env | Dictionary of environment variables that should be set during the test execution. The values of the dictionary are subject to "Make" variable expansion. | <ahref="https://bazel.build/rules/lib/dict">Dictionary: String -> String</a> | optional |`{}`|
682
684
| <aid="macos_unit_test-env_inherit"></a>env_inherit | List of environment variables to inherit from the external environment. | List of strings | optional |`[]`|
683
685
| <aid="macos_unit_test-minimum_deployment_os_version"></a>minimum_deployment_os_version | A required string indicating the minimum deployment OS version supported by the target, represented as a dotted version number (for example, "9.0"). This is different from `minimum_os_version`, which is effective at compile time. Ensure version specific APIs are guarded with `available` clauses. | String | optional |`""`|
0 commit comments