Files
NativeScript/e2e/nested-frame-navigation/e2e/setup.ts
SvetoslavTsenov a7bfabcaec chore: fix tslint
2019-05-06 13:33:26 +03:00

20 lines
702 B
TypeScript

import { startServer, stopServer, nsCapabilities, ITestReporter, LogImageType } from "nativescript-dev-appium";
const addContext = require("mochawesome/addContext");
const testReporterContext = <ITestReporter>{};
testReporterContext.name = "mochawesome";
testReporterContext.reportDir = "mochawesome-report";
testReporterContext.log = addContext;
testReporterContext.logImageTypes = [LogImageType.screenshots];
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();
});