utPLSQL / utPLSQL-maven-plugin

Maven plugin for running Unit Tests with utPLSQL v3
Apache License 2.0
13 stars 10 forks source link

Console output behavior #29

Closed jgebal closed 5 years ago

jgebal commented 5 years ago

When configuring reporters like below:

                    <reporters>
                        <reporter>
                            <name>UT_DOCUMENTATION_REPORTER</name>
                        </reporter>
                        <reporter>
                            <name>UT_COVERAGE_SONAR_REPORTER</name>
                            <fileOutput>coverage-sonar-reporter.xml</fileOutput>
                        </reporter>
                        <reporter>
                            <name>UT_SONAR_TEST_REPORTER</name>
                            <fileOutput>utplsql/sonar-test-reporter.xml</fileOutput>
                            <consoleOutput>true</consoleOutput>
                        </reporter>
                    </reporters>

The behavior should be:

The current behavior is not correct for situation when neither nor is specified. In such case, should be defaulted to TRUE.

In case when is specified, should default to FALSE.

jgarec commented 5 years ago

So it only concerns UT_DOCUMENTATION_REPORTER ? By default consoleOutput should be true. For others, by default, consoleOutput is false. Right ?

jgebal commented 5 years ago

Not exactly. If no fileOutput specified -> default true If fileOutput specified -> default false If explicitly provided->accept what is provided