IBM / dbb-zappbuild

zAppBuild is a generic build solution for building z/OS applications using Apache Groovy build scripts and IBM Dependency Based Build (DBB) APIs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implicitly activate debug flag when code coverage is activated

dennis-behm opened this issue · comments

Customer feedback:

Since the --debug parameter is always required when the -cc parameter is specified, why not just activate the --debug parameter whenever the -cc parameter is specified and NOT have the user have to also specify it? It would be clearer (+cleaner) to me if the user just had to specify one parameter to activate Code Coverage.

The existing implementation does not implement the dependency between the two options and the debug flag could be turned on when -cc is passed:

dbb-zappbuild/build.groovy

Lines 424 to 434 in 85e0df0

// set code coverage flag
if (opts.cc) {
props.codeZunitCoverage = 'true'
if (opts.cch && opts.ccp) {
props.codeCoverageHeadlessHost = opts.cch
props.codeCoverageHeadlessPort = opts.ccp
}
if (opts.cco) {
props.codeCoverageOptions = opts.cco
}
}