Spin server when Tests start (#3316)
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user