Linked Rabbiteer & Crons

This commit is contained in:
Dunemask 2022-05-05 20:30:24 +00:00
parent 0ce2785b75
commit 8b136eb565
8 changed files with 58 additions and 8 deletions

View file

@ -0,0 +1,27 @@
// Imports
import { Worker } from "rabbiteer";
// Class
export default class TestResultsWorker extends Worker {
constructor() {
super("TestResults");
}
/* Example Test Result
{
testName: SomeTest,
testClass: SomeClass,
testMethod: SomeMethod,
testType: API/UI,
testTimestamp: 123893024,
origin: TestSuite,
failed: true,
failedMessage: Some Failure,
screenshotUrl: https://screenshot”,
expectedScreenshotUrl: https://expected”
consoleLogUrl: https://consolelog”
}
*/
onMessage(testResult) {
console.log(testResult);
}
}

View file

@ -0,0 +1,3 @@
import TestResultsWorker from "./TestResultsWorker.js";
export default [new TestResultsWorker()];