def register_junit_options(register, register_jvm_tool): register("--coverage", type=bool, fingerprint=True, help="Collect code coverage data.") register( "--coverage-processor", advanced=True, fingerprint=True, choices=["cobertura", "jacoco", "scoverage"], default=None, help= "Which coverage processor to use if --coverage is enabled. If this option is " "unset but coverage is enabled implicitly or explicitly, defaults to 'cobertura'. " "If this option is explicitly set, implies --coverage. If this option is set to " "scoverage, then first scoverage MUST be enabled by passing option " "--scoverage-enable-scoverage.", ) # We need to fingerprint this even though it nominally UI-only affecting option since the # presence of this option alone can implicitly flag on `--coverage`. register( "--coverage-open", type=bool, fingerprint=True, help= "Open the generated HTML coverage report in a browser. Implies --coverage ", ) register( "--coverage-jvm-options", advanced=True, type=list, fingerprint=True, help= "JVM flags to be added when running the coverage processor. For example: " "{flag}=-Xmx4g {flag}=-Xms2g".format( flag="--coverage-jvm-options"), ) register( "--coverage-force", advanced=True, type=bool, help= "Attempt to run the reporting phase of coverage even if tests failed " "(defaults to False, as otherwise the coverage results would be unreliable).", ) # register options for coverage engines # TODO(jtrobec): get rid of these calls when engines are dependent subsystems Cobertura.register_junit_options(register, register_jvm_tool)
def register_junit_options(register, register_jvm_tool): register('--coverage', type=bool, fingerprint=True, help='Collect code coverage data.') register( '--coverage-processor', advanced=True, fingerprint=True, choices=['cobertura', 'jacoco'], default=None, help= "Which coverage processor to use if --coverage is enabled. If this option is " "unset but coverage is enabled implicitly or explicitly, defaults to 'cobertura'." "If this option is explicitly set, implies --coverage.") # We need to fingerprint this even though it nominally UI-only affecting option since the # presence of this option alone can implicitly flag on `--coverage`. register( '--coverage-open', type=bool, fingerprint=True, help= 'Open the generated HTML coverage report in a browser. Implies --coverage.' ) register( '--coverage-jvm-options', advanced=True, type=list, fingerprint=True, help= 'JVM flags to be added when running the coverage processor. For example: ' '{flag}=-Xmx4g {flag}=-Xms2g'.format( flag='--coverage-jvm-options')) register( '--coverage-force', advanced=True, type=bool, help= 'Attempt to run the reporting phase of coverage even if tests failed ' '(defaults to False, as otherwise the coverage results would be unreliable).' ) # register options for coverage engines # TODO(jtrobec): get rid of this calls when engines are dependent subsystems Cobertura.register_junit_options(register, register_jvm_tool)
def register_junit_options(register, register_jvm_tool): register('--coverage', type=bool, fingerprint=True, help='Collect code coverage data.') register( '--coverage-processor', advanced=True, default='cobertura', choices=['cobertura', 'jacoco'], removal_hint= 'Only cobertura is supported for code coverage so this option can be ' 'omitted. jacoco is here only as a placeholder, and acts as a no-op until ' 'it is implemented.', help='Which coverage subsystem to use.') register( '--coverage-jvm-options', advanced=True, type=list, fingerprint=True, help= 'JVM flags to be added when running the coverage processor. For example: ' '{flag}=-Xmx4g {flag}=-XX:MaxPermSize=1g'.format( flag='--coverage-jvm-options')) register( '--coverage-open', type=bool, fingerprint=True, help= 'Open the generated HTML coverage report in a browser. Implies --coverage.' ) register( '--coverage-force', advanced=True, type=bool, help= 'Attempt to run the reporting phase of coverage even if tests failed ' '(defaults to False, as otherwise the coverage results would be unreliable).' ) # register options for coverage engines # TODO(jtrobec): get rid of this calls when engines are dependent subsystems Cobertura.register_junit_options(register, register_jvm_tool)
def register_junit_options(register, register_jvm_tool): register('--coverage', type=bool, fingerprint=True, help='Collect code coverage data.') register('--coverage-processor', advanced=True, fingerprint=True, choices=['cobertura', 'jacoco'], default=None, help="Which coverage processor to use if --coverage is enabled. If this option is " "unset but coverage is enabled implicitly or explicitly, defaults to 'cobertura'." "If this option is explicitly set, implies --coverage.") # We need to fingerprint this even though it nominally UI-only affecting option since the # presence of this option alone can implicitly flag on `--coverage`. register('--coverage-open', type=bool, fingerprint=True, help='Open the generated HTML coverage report in a browser. Implies --coverage.') register('--coverage-jvm-options', advanced=True, type=list, fingerprint=True, help='JVM flags to be added when running the coverage processor. For example: ' '{flag}=-Xmx4g {flag}=-Xms2g'.format(flag='--coverage-jvm-options')) register('--coverage-force', advanced=True, type=bool, help='Attempt to run the reporting phase of coverage even if tests failed ' '(defaults to False, as otherwise the coverage results would be unreliable).') # register options for coverage engines # TODO(jtrobec): get rid of this calls when engines are dependent subsystems Cobertura.register_junit_options(register, register_jvm_tool)