cypress-aiotests-reporter
Advanced tools
Comparing version 1.3.0 to 1.4.0
@@ -18,7 +18,2 @@ describe('empty spec ', () => { | ||
it(' NVTES-TC-6 : displays two todo items by default failure', () => { | ||
cy.get('.todo-list li').should('have.length', 2) | ||
cy.get('.todo-list li').first().should('have.text', 'Pay electric bills') | ||
cy.get('.todo-list li').last().should('have.text', 'Walk the dog') | ||
}) | ||
}) |
{ | ||
"name": "cypress-aiotests-reporter", | ||
"version": "1.3.0", | ||
"version": "1.4.0", | ||
"description": "Plugin to report cypress results to AIO Tests Jira", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -118,5 +118,5 @@ const axios = require('axios'); | ||
}; | ||
if(attemptData.error) { | ||
data["comments"] = [attemptData.error.name + " : " + attemptData.error.message + "\n" + attemptData.error.stack ]; | ||
if(!!aioConfig.addTestBodyToComments) { | ||
if(attemptData.error || (data.testRunStatus === "Failed" && caseData.displayError)) { | ||
data["comments"] = [caseData.displayError? caseData.displayError : attemptData.error.name + " : " + attemptData.error.message + "\n" + attemptData.error.stack ]; | ||
if(!!aioConfig.addTestBodyToComments && caseData.body) { | ||
data["comments"].push("Test Body : " + caseData.body); | ||
@@ -243,3 +243,3 @@ } | ||
if(tcKeys.length) { | ||
tcKeys.forEach(tcKey => testData.set(tcKey, {attempts: t.attempts, id : t.testId, body: t.body, duration: t.duration})) | ||
tcKeys.forEach(tcKey => testData.set(tcKey, {attempts: t.attempts, id : t.testId, body: t.body, duration: t.duration, displayError: t.displayError})) | ||
} | ||
@@ -246,0 +246,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
487995
507