I am currently working on integrating the puppeteer-jest test framework with TestRail using TestRail API. To accomplish this task, I need to identify which tests have failed and which tests have passed.
Despite searching through the official GitHub Repository and the Jest site, I have been unable to find any information on this specific topic.
The following is a snippet of the test code:
describe('Single company page Tests:', () => {
let homePage;
beforeAll(async () => {
homePage = await addTokenToBrowser(browser);
}, LOGIN_FLOW_MAX_TIME);
it('Open the company page from the list', async done => {
// Test steps go here
});
}
My goal is to retrieve the names of all passed and failed test cases, and then store them in a JSON file along with their corresponding results. However, at the moment, I do not have access to this information.