Updated things for compound testing

This commit is contained in:
Dunemask 2022-07-12 02:44:44 +00:00
parent 4e6732c09b
commit 5c3f865604
16 changed files with 160 additions and 56 deletions

View file

@ -11,7 +11,7 @@ const reportingUrl = `${process.env.QUALITEER_URL}/api/dev/rabbit/TestResults`;
const args = process.argv.slice(2);
const test = (args.find((v)=>v.includes("test=")) ?? "").replace("test=","");
const pipelineData = (args.find((v)=>v.includes("pipelineData=")) ?? "").replace("pipelineData=","");
const pipelineLife = parseInt((args.find((v)=>v.includes("pipelineLife=")) ?? "0").replace("pipelineLife=",""));
const pipelineTriggers = (args.find((v)=>v.includes("pipelineTriggers=")) ?? "").replace("pipelineTriggers=","");
const pipelineDashboardSocket = (args.find((v)=>v.includes("pipelineDashboardSocket=")) ?? "").replace("pipelineDashboardSocket=","") || undefined;
const logNow = () => console.log(Date.now());
@ -38,7 +38,7 @@ const runTests = () => {
liveIndicator();
setTimeout(()=>{
const status = runTests();
const testResult = {...status, name:test, pipelineLife, pipelineDashboardSocket}
const testResult = {...status, name:test, pipelineTriggers: pipelineTriggers ? pipelineTriggers : undefined, pipelineDashboardSocket}
axios.post(reportingUrl, {testResult}).catch((e)=>{console.log(e.response.status)});
},endLiveCount * 1000);