mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup
This commit is contained in:
18
apps/ui/e2e/setup.ts
Normal file
18
apps/ui/e2e/setup.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { startServer, stopServer, ITestReporter, nsCapabilities, LogImageType } from "nativescript-dev-appium";
|
||||
const addContext = require("mochawesome/addContext");
|
||||
|
||||
const testReporterContext = <ITestReporter>{};
|
||||
testReporterContext.name = "mochawesome";
|
||||
testReporterContext.reportDir = "mochawesome-report";
|
||||
testReporterContext.log = addContext;
|
||||
nsCapabilities.testReporter = testReporterContext;
|
||||
|
||||
before("start server", async function () {
|
||||
nsCapabilities.testReporter.context = this;
|
||||
await startServer();
|
||||
});
|
||||
|
||||
after("stop server", async function () {
|
||||
nsCapabilities.testReporter.context = this;
|
||||
await stopServer();
|
||||
});
|
||||
Reference in New Issue
Block a user