Updated things for compound testing
This commit is contained in:
parent
4e6732c09b
commit
5c3f865604
16 changed files with 160 additions and 56 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue