DefinitelyTyped/types/allure-js-commons/allure-js-commons-tests.ts
2018-05-24 15:04:50 +03:00

25 lines
616 B
TypeScript

import Allure from "allure-js-commons";
const shouldMakeError = new Allure("test"); // $ExpectError
const allure = new Allure();
allure.startSuite("suite");
allure.startCase("case");
allure.startCase("case", 123456789);
allure.endCase("passed");
allure.endCase("pending");
allure.endCase("skipped");
allure.endCase("failed");
allure.endCase("broken", 1232131232);
allure.endCase("error"); // $ExpectError
allure.startStep("error");
allure.endStep("error"); // $ExpectError
allure.setDescription("description");
allure.addAttachment("image", {}, "image/jpeg");
allure.pendingCase("pending");
allure.endSuite();