allure-framework / allure-js-commons

Deprecated, use https://github.com/allure-framework/allure-js instead
Other
27 stars 40 forks source link

Provide parameters from test case #8

Closed just-boris closed 8 years ago

just-boris commented 8 years ago

Possible api

it("is a test", function() {
    allure.addArgument("browser", "Chrome")
    allure.addArgument("capabilities", "chrome.latest.mac")
});
ctapobep commented 8 years ago

Is this a new notion? I remember there were labels in Allure. Where will the arguments be shown?

just-boris commented 8 years ago

It is already implemented in java for a long time. Now we have a demand to do it in javascript.

If these parameters exist, they will be shown under test case title: image

Also you will be able to set an environment entity. It is key-value list under the failure message.

allure.addEnvironment("testHost", "http://example.com/")

Links in the environment are clickable.

just-boris commented 8 years ago

The new methods are described here: https://github.com/allure-framework/mocha-allure-reporter/blob/master/README.md#runtime-api

I know, that is kinda weird, but now I don't have any another place to keep it.

ctapobep commented 8 years ago

You could create a page in allure-common and reference it from the concrete reporters pages. I'd add it to jasmine reporter as well.