stale-lifeguard-39024
01/26/2023, 7:18 PMbland-salesclerk-62828
01/26/2023, 8:23 PMstale-lifeguard-39024
01/27/2023, 9:18 AMpowerful-orange-86819
01/27/2023, 1:40 PMjs
on("after:run", async (results) => {
inside the index.js to send the results i want from my runstale-lifeguard-39024
01/27/2023, 2:00 PMpowerful-orange-86819
01/27/2023, 2:21 PMjs
const percentFailed = (
(results.totalFailed / results.totalTests) *
100
).toFixed(2);
const percentPassed = (
(results.totalPassed / (results.totalTests - results.totalPending)) *
100
).toFixed(2);
const skipped = results.totalSkipped
const endTimestamp = results.endedTestsAt
Just log the results and pick what you need from that jsonpowerful-orange-86819
01/27/2023, 2:22 PM