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

define test results and reporting formats #31

Open
tomkralidis opened this issue Aug 9, 2024 · 0 comments
Open

define test results and reporting formats #31

tomkralidis opened this issue Aug 9, 2024 · 0 comments
Assignees
Labels
environment Environment global-broker Global Broker Service global-cache Global Cache Service global-discovery-catalogue Global Discovery Catalogue Service global-monitor Global Monitor Service orchestrator Orchestrator

Comments

@tomkralidis
Copy link
Collaborator

Each global service will have its own "orchestrator" that will be able to output test results and associated reports. The following is proposed:

  • test results: use the default pytest output to dump results
  • reporting: consider using the report format used by pywcmp, along with running pytest with -s (to print report to stdout). Example:
{
    "ets-report": {
        "summary": {
            "PASSED": 12,
            "FAILED": 0,
            "SKIPPED": 0
        },
        "generated-by": "pywcmp 0.8.4 (https://github.com/wmo-im/pywcmp)",
        "tests": [
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/conformance",
                "code": "PASSED"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/contacts",
                "code": "PASSED"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/record_creation_date",
                "code": "PASSED",
                "message": "Passes given schema is compliant/valid"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/data_policy",
                "code": "PASSED"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/description",
                "code": "PASSED",
                "message": "Passes given schema is compliant/valid"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/extent_geospatial",
                "code": "PASSED",
                "message": "Passes given schema is compliant/valid"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/extent_temporal",
                "code": "PASSED",
                "message": "Passes given schema is compliant/valid"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/identifier",
                "code": "PASSED"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/links",
                "code": "PASSED"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/themes",
                "code": "PASSED"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/title",
                "code": "PASSED",
                "message": "Passes given schema is compliant/valid"
            },
            {
                "id": "http://wis.wmo.int/spec/wcmp/2/conf/core/type",
                "code": "PASSED"
            }
        ],
        "datetime": "2024-08-06T09:18:13Z"
    }
}
@tomkralidis tomkralidis added global-broker Global Broker Service global-cache Global Cache Service global-discovery-catalogue Global Discovery Catalogue Service global-monitor Global Monitor Service environment Environment orchestrator Orchestrator labels Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
environment Environment global-broker Global Broker Service global-cache Global Cache Service global-discovery-catalogue Global Discovery Catalogue Service global-monitor Global Monitor Service orchestrator Orchestrator
Projects
None yet
Development

No branches or pull requests

3 participants