object
sonar_report
Intercepts unit test execution messages and generates a sonar.xml file with code coverage results using the SonarQube and SonarCloud Generic Test Coverage XML format.
logtalk_load(lgtunit(loader))static, context_switching_calls
Usage: Simply load this object before running your tests using the goal
logtalk_load(lgtunit(sonar_report)).Analysis parameter: Pass the generated report to the Sonar scanner using the
sonar.coverageReportPathsanalysis parameter.File paths: Sonar requires file paths to be either absolute or relative to the project root. Use the
suppress_path_prefixflag to strip the prefix of the source file paths when necessary.Lines to cover: Each predicate is reported as a single line to cover, the line of its first clause. The line is reported as covered when at least one of the predicate clauses is covered. Predicates without line information and with lines outside the source file are not reported.
Branches to cover: Predicates with two or more clauses also report the number of clauses as the number of branches to cover and the number of covered clauses as the number of covered branches.
Shared lines and files: Entities defined in the same source file are reported under a single file element. Predicates that share the same line are reported as a single line to cover.
Public predicates
(no local declarations; see entity ancestors if any)
Protected predicates
(no local declarations; see entity ancestors if any)
Private predicates
predicate_coverage_/4
Table of predicate coverage data.
dynamicpredicate_coverage_(File,Line,Covered,Total)predicate_coverage_(?atom,?integer,?integer,?integer) - zero_or_moreOperators
(none)