Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add listener that logs information about test runs #229

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

heidivanparys
Copy link
Contributor

Resolves #228.

@heidivanparys
Copy link
Contributor Author

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 

@dstenger dstenger self-requested a review October 31, 2023 10:59
@dstenger dstenger added this to the 1.7 milestone Oct 31, 2023
@dstenger dstenger merged commit e261947 into opengeospatial:master Oct 31, 2023
@heidivanparys heidivanparys deleted the improved_logging branch November 1, 2023 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improved logging in order to follow progress
2 participants