Skip to content

Added runtime execution output#47

Merged
ricardogsilva merged 1 commit intoOSGeo:mainfrom
ricardogsilva:10-add-more-execution-feedback
Apr 9, 2025
Merged

Added runtime execution output#47
ricardogsilva merged 1 commit intoOSGeo:mainfrom
ricardogsilva:10-add-more-execution-feedback

Conversation

@ricardogsilva
Copy link
Contributor

This PR adds a secondary rich console for sending status messages to stderr. Main results are still sent to stdout in order to allow piping and redirection. It then adds some light print statements to provide execution feedback to the user

Example:

$ poetry run cite-runner execute-test-suite \
>     http://localhost:8080/teamengine \
>     ogcapi-features-1.0 \
>     --test-suite-input iut http://localhost:5000 \
>     --output-format json \
> | jq '{result: .passed}'
Checking if teamengine is ready...
Asking teamengine to execute test suite 'ogcapi-features-1.0'...
Received teamengine execution result in EARL format
Parsing test suite execution results...
Serializing parsed results to json...
{
  "result": false
}

Main results are still sent to stdout in order to allow piping and redirection. Runtime feedback information is sent to stderr via a secondary rich console.

---

- fixes OSGeo#10
@ricardogsilva ricardogsilva merged commit 7236c2e into OSGeo:main Apr 9, 2025
1 check passed
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.

add more execution feedback

1 participant