Skip to content

lizardev/xquery-saxon

Repository files navigation

XQuery Coverage for Saxon implementation

Build Status Maven Central

xquery-saxon-support module features

  • many TraceCodeInjectors and TraceListeners supported in the same time via TraceExtension interface
  • TraceExtensions could be provided via generic Service Provider Interface (SPI). It makes prod code independent on potential TraceExtension

xquery-saxon-coverage module features

  • Coverage collection from many module's compilations
  • Coverage report per line and instruction in HTML format

Configuration

  • add xquery-saxon-support to prod classpath and use SpiTraceExtensionProvider to obtain TraceExtension
  • add xquery-saxon-coverage to test classpath and enable coverage collection via -Dxquery.saxon.coverage Java system property

IDE integration

Provide Java system properties

  • -Dxquery.saxon.coverage - enables coverage collection
  • -Dxquery.saxon.coverage.report.bin.save.on.shutdown - saves binary coverage report on JVM shutdown in report directory
  • -Dxquery.saxon.coverage.report.html.save.on.shutdown - saves HTML coverage report on JVM shutdown in report directory
  • -Dxquery.saxon.coverage.report.dir - report directory, default value is build/reports/xquery-saxon-coverage