monday-test-reporter
v1.0.8
Published
Allow to publish tests results on Monday (junit + mochawesome)
Downloads
1
Readme
Monday Test Reporter
About
This package allows to :
track what's test into your app.
if the tests are passed or not.
Know when the last tests have been executed.
...
Installation
# npm
$ npm i monday-test-reporter
# yarn
$ yarn add monday-test-reporter
Requirements
Get the column ids and sub column ids
Usage (Junit)
const Publisher = require("monday-test-reporter").default;
const subItemColumnId = {
Statut: "statut1",
Duration: "chiffres1",
Last_Update: "texte1",
};
const itemColumnId = {
Statut: "statut1",
File: "texte1",
Last_Update: "texte1",
};
const boardId = 12345678;
const groupId = "new_group_7487489";
const folderpath = "./tmp";
const apiKey = process.env.MONDAY_API_KEY;
if (!apiKey) throw new Error("MONDAY API KEY NOT FOUND");
const publisher = new Publisher.junit({
subItemColumnId,
itemColumnId,
apiKey,
});
publisher.publish(folderpath, boardId, groupId)
Usage (Mochawesome)
const Publisher = require("monday-test-reporter").default;
const subItemColumnId = {
Statut: "statut1",
Duration: "chiffres1",
Last_Update: "texte1",
};
const itemColumnId = {
Statut: "statut1",
File: "texte1",
Last_Update: "texte1",
};
const boardId = 12345678;
const groupId = "new_group_7487489";
const filepath = "./mochawesome-file-results.json";
const apiKey = process.env.MONDAY_API_KEY;
if (!apiKey) throw new Error("MONDAY API KEY NOT FOUND");
const publisher = new Publisher.mochawesome({
subItemColumnId,
itemColumnId,
apiKey,
});
publisher.publish(filepath, boardId, groupId)