|
|
@ -279,18 +279,23 @@ export const SolidityUnitTesting = (props: Record<string, any>) => { |
|
|
|
return |
|
|
|
return |
|
|
|
} |
|
|
|
} |
|
|
|
let label |
|
|
|
let label |
|
|
|
if (index > -1) label = (<div |
|
|
|
if (index > -1) { |
|
|
|
className="alert-danger d-inline-block mb-1 mr-1 p-1 failed_{runningTestFileName}" |
|
|
|
const className = "alert-danger d-inline-block mb-1 mr-1 p-1 failed_" + runningTestFileName |
|
|
|
|
|
|
|
label = (<div |
|
|
|
|
|
|
|
className={className} |
|
|
|
title="At least one contract test failed" |
|
|
|
title="At least one contract test failed" |
|
|
|
> |
|
|
|
> |
|
|
|
FAIL |
|
|
|
FAIL |
|
|
|
</div>) |
|
|
|
</div>) |
|
|
|
else label = (<div |
|
|
|
} else { |
|
|
|
className="alert-success d-inline-block mb-1 mr-1 p-1 passed_{runningTestFileName}" |
|
|
|
const className = "alert-success d-inline-block mb-1 mr-1 p-1 passed_" + runningTestFileName |
|
|
|
|
|
|
|
label = (<div |
|
|
|
|
|
|
|
className={className} |
|
|
|
title="All contract tests passed" |
|
|
|
title="All contract tests passed" |
|
|
|
> |
|
|
|
> |
|
|
|
PASS |
|
|
|
PASS |
|
|
|
</div>) |
|
|
|
</div>) |
|
|
|
|
|
|
|
} |
|
|
|
// show contract and file name with label
|
|
|
|
// show contract and file name with label
|
|
|
|
const ContractCard: any = ( |
|
|
|
const ContractCard: any = ( |
|
|
|
<div id={runningTestFileName} data-id="testTabSolidityUnitTestsOutputheader" className="pt-1"> |
|
|
|
<div id={runningTestFileName} data-id="testTabSolidityUnitTestsOutputheader" className="pt-1"> |
|
|
|