html-reporter
Version:
Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.
37 lines (36 loc) • 1.65 kB
TypeScript
import { Database, DbDetails } from "../../../db-utils/client";
import actionNames from "../action-names";
import { FinalStats, SkipItem } from "../../../tests-tree-builder/static";
import { Action, AppThunk } from "./types";
import { DataForStaticFile } from "../../../server-utils";
import { GetInitResponse } from "../../../gui/server";
import { Tree } from "../../../tests-tree-builder/base";
import { BrowserItem } from "../../../types";
export type InitGuiReportAction = Action<typeof actionNames.INIT_GUI_REPORT, GetInitResponse & {
db: Database;
isNewUi?: boolean;
}>;
interface InitGuiReportData {
isNewUi?: boolean;
}
export declare const thunkInitGuiReport: ({ isNewUi }?: InitGuiReportData) => AppThunk;
export type InitStaticReportAction = Action<typeof actionNames.INIT_STATIC_REPORT, Partial<DataForStaticFile> & {
db: Database;
fetchDbDetails: DbDetails[];
tree: Tree;
stats: FinalStats | null;
skips: SkipItem[];
browsers: BrowserItem[];
isNewUi?: boolean;
}>;
interface InitStaticReportData {
isNewUi?: boolean;
}
export declare const thunkInitStaticReport: ({ isNewUi }?: InitStaticReportData) => AppThunk;
export declare const thunkRefreshGuiReport: () => AppThunk;
export type FinGuiReportAction = Action<typeof actionNames.FIN_GUI_REPORT>;
export declare const finGuiReport: () => FinGuiReportAction;
export type FinStaticReportAction = Action<typeof actionNames.FIN_STATIC_REPORT>;
export declare const finStaticReport: () => FinStaticReportAction;
export type LifecycleAction = InitGuiReportAction | InitStaticReportAction | FinGuiReportAction | FinStaticReportAction;
export {};