Spin server when Tests start (#3316)

This commit is contained in:
yasser khan
2025-03-26 23:43:10 +05:30
committed by GitHub
parent 081d9c5ad5
commit aa4ee31da3
11 changed files with 477 additions and 322 deletions

View File

@@ -27,6 +27,7 @@
* - TYPE=[type], e.g. "MASTER", "PR", "RELEASE", "CLOUD"
*/
const fs = require('fs');
const path = require('path');
const generator = require('mochawesome-report-generator');
@@ -79,6 +80,9 @@ const saveReport = async () => {
const result = await saveArtifacts();
if (result && result.success) {
console.log('Successfully uploaded artifacts to S3:', result.reportLink);
// save the report link to a file For CI to use
fs.writeFileSync('report-link.txt', result.reportLink);
}
// Create or use an existing test cycle
@@ -98,8 +102,6 @@ const saveReport = async () => {
if (ZEPHYR_ENABLE === 'true') {
await createTestExecutions(jsonReport, testCycle);
}
// chai.expect(Boolean(jsonReport.stats.failures), FAILURE_MESSAGE).to.be.false;
};
saveReport();