cypress-aiotests-reporter
Advanced tools
Comparing version 1.1.2 to 1.2.0
{ | ||
"name": "cypress-aiotests-reporter", | ||
"version": "1.1.2", | ||
"version": "1.2.0", | ||
"description": "Plugin to report cypress results to AIO Tests Jira", | ||
@@ -19,8 +19,7 @@ "main": "src/index.js", | ||
"devDependencies": { | ||
"cypress": "^9.0.0", | ||
"semantic-release": "^18.0.0" | ||
"cypress": "^10.6.0" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.24.0", | ||
"chalk": "^4.1.2", | ||
"ansis": "^2.0.2", | ||
"axios": "^1.6.2", | ||
"form-data": "^4.0.0" | ||
@@ -27,0 +26,0 @@ }, |
@@ -10,4 +10,8 @@ [](https://github.com/aiotests/cypress-aiotests-reporter/actions/workflows/main.yml) | ||
By hooking into Cypress events, the AIO Tests Reporter reports results in the ` after:spec ` event, after every spec run finishes. | ||
<br>The reporter can create a new cycle for the executions or reuse existing cycles, based on the configuration done in cyress.json. <br>It can also upload attachments for failed executions. <br> **Retries** can either be reported as new runs or used to update the existing run. | ||
<br>The reporter can create a new cycle for the executions or reuse existing cycles, based on the configuration done in cyress.json. <br>It can also upload attachments for failed executions. <br> **Retries** can either be reported as new runs or used to update the existing run.<br> | ||
> [!NOTE] | ||
> Please note that with Cypress 13, Cypress has made breaking changes to its module API which used to expose data on results of executions. | ||
> Due to this change, AIO Tests reporter can no longer send screenshots and body information to AIO Tests. | ||
> If you would like to have this feature, please bump up the request @ [Cypress 13 Module API bug](https://github.com/cypress-io/cypress/issues/27732) | ||
# How to get started? | ||
@@ -77,3 +81,3 @@ ``` | ||
``` | ||
Please note that due to a change in v13, screenshots can no longer be uploaded using the plugin. | ||
### Configure | ||
@@ -80,0 +84,0 @@ |
@@ -20,3 +20,3 @@ const axios = require('axios'); | ||
aioAPIClient = axios.create({ | ||
baseURL: 'https://tcms.aioreports.com/aio-tcms/api/v1', | ||
baseURL: 'https://tcms.aiojiraapps.com/aio-tcms/api/v1', | ||
timeout: apiTimeout, | ||
@@ -23,0 +23,0 @@ headers: {'Authorization': `AioAuth ${apiKey}`} |
@@ -1,2 +0,2 @@ | ||
const chalk = require('chalk'); | ||
const ansis = require('ansis'); | ||
@@ -8,7 +8,8 @@ const AioTestsLogger = { | ||
error: (text, addReporter) => { | ||
if(addReporter) console.log(chalk.hex('#0094a6').underline.bold('AIO Tests Reporter :')); | ||
console.error( ' - ' + chalk.red(text)); | ||
if(addReporter) console.log(ansis.hex('#0094a6').underline.bold('AIO Tests Reporter :')); | ||
console.error( ' - ' + ansis.red(text)); | ||
}, | ||
logStartEnd: (text) => { | ||
console.log( chalk.hex('#0094a6').bold("*".repeat(15) + ' AIO Tests Reporter :' + text + " " + "*".repeat(15))); | ||
const repeatStr = "*".repeat(15); | ||
console.log(ansis.hex('#0094a6').bold(`${repeatStr} AIO Tests Reporter : ${text} ${repeatStr}` )); | ||
} | ||
@@ -15,0 +16,0 @@ } |
Sorry, the diff of this file is not supported yet
141739
1
19
199
503
+ Addedansis@^2.0.2
+ Addedansis@2.3.0(transitive)
+ Addedaxios@1.8.1(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removedchalk@^4.1.2
- Removedansi-styles@4.3.0(transitive)
- Removedaxios@0.24.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedhas-flag@4.0.0(transitive)
- Removedsupports-color@7.2.0(transitive)
Updatedaxios@^1.6.2