opengeospatial / ets-ogcapi-features10

Public Repository for the OGC API - Features Compliance Test Suite
Other
16 stars 6 forks source link

Add listener that logs information about test runs #229

Closed heidivanparys closed 11 months ago

heidivanparys commented 11 months ago

Resolves #228.

heidivanparys commented 11 months ago

An example of the output:

With the following logging.properties:

# Add handlers to the root logger
handlers = java.util.logging.ConsoleHandler

# Logging level of the root logger
.level = WARNING

java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter

java.util.logging.SimpleFormatter.format = %1$tFT%1$tR %4$s %5$s %6$s%n

org.opengis.cite.ogcapifeatures10.level=FINE

I get output like this:

2023-10-30T16:40 INFO Invoking test landingPageRetrieval: Implements A.2.2. Landing Page {root}/, Abstract Test 3 (Requirement /req/core/root-op) 
(...other console output...)
2023-10-30T16:40 INFO landingPageRetrieval passed 
2023-10-30T16:40 INFO Invoking test http: Implements A.2.1.1. HTTP, Abstract Test 1 (Requirement /req/core/http) 
(...other console output...)
2023-10-30T16:40 INFO http passed