w3c / wot-thing-description

Web of Things (WoT) Thing Description
http://w3c.github.io/wot-thing-description/
Other
131 stars 63 forks source link

Annotating TDs with test results #1244

Open egekorkan opened 3 years ago

egekorkan commented 3 years ago

Coming from https://github.com/w3c/wot-testing/issues/189

Once a Thing is tested via its TD where multiple requests are sent to the Thing, it would be nice to incorporate this information to TD, similar to the badges that repositories have. The question is how to do that. Below is an initial thought:

{
    "@context": "https://www.w3.org/2019/wot/td/v1",
    "title": "My Thing",
    "id": "urn:dev:ops:32473-WoTLamp-1234",
    "links": [{
        "href": "https://app.codecov.io/wot/urn:dev:ops:32473-WoTLamp-1234",
        "rel": "report",
        "testResult": {
            "testSuite": "https://github.com/tum-esi/testbench",
            "totalTests": 120,
            "passedTests": 100
        }
    }]
}

What is definitely needed:

egekorkan commented 3 years ago

Since it would be a new feature, postponing to 2.0