html-reporter
Version:
Html-reporter and GUI for viewing and managing results of a tests run. Currently supports Testplane and Hermione.
57 lines (56 loc) • 2.8 kB
TypeScript
/// <reference types="gemini-testing__sql.js" />
import type { Database } from '@gemini-testing/sql.js';
import actionNames from "../action-names";
import { Action, AppThunk } from "./types";
import { TestSpec } from "../../../adapters/tool/types";
import { TestBranch } from "../../../tests-tree-builder/gui";
import { TestStatus } from "../../../constants";
export type RunTestAction = Action<typeof actionNames.RETRY_TEST>;
export declare const runTest: () => RunTestAction;
export declare const setRepeatCount: (repeatCount: number) => import("redux").Action<"SET_REPEAT_COUNT"> & {
payload: {
repeatCount: number;
};
};
export declare const setRepeatLeft: (repeatLeft: number) => import("redux").Action<"SET_REPEAT_LEFT"> & {
payload: {
repeatLeft: number;
};
};
export declare const thunkRunTests: ({ tests }?: {
tests?: TestSpec[] | undefined;
}) => AppThunk;
export type RunAllTestsAction = Action<typeof actionNames.RUN_ALL_TESTS>;
export declare const runAllTests: () => RunAllTestsAction;
export declare const thunkRunAllTests: () => AppThunk;
export type RunFailedTestsAction = Action<typeof actionNames.RUN_FAILED_TESTS>;
export declare const runFailedTests: () => RunFailedTestsAction;
export declare const thunkRunFailedTests: ({ tests }: {
tests: TestSpec[];
}) => AppThunk;
export type RunSuiteAction = Action<typeof actionNames.RETRY_SUITE>;
export declare const runSuite: () => RunSuiteAction;
export declare const thunkRunSuite: ({ tests }: {
tests: TestSpec[];
}) => AppThunk;
export declare const thunkRunTest: ({ test }: {
test: TestSpec;
}) => AppThunk;
export type StopTestsAction = Action<typeof actionNames.STOP_TESTS>;
export declare const stopTests: () => StopTestsAction;
export declare const thunkStopTests: () => AppThunk;
export type TestsEndAction = Action<typeof actionNames.TESTS_END, {
db: Database;
}>;
export declare const testsEnd: (payload: TestsEndAction['payload']) => TestsEndAction;
export declare const thunkTestsEnd: () => AppThunk;
export type SuiteBeginAction = Action<typeof actionNames.SUITE_BEGIN, {
suiteId: string;
status: TestStatus.RUNNING;
}>;
export declare const suiteBegin: (payload: SuiteBeginAction['payload']) => SuiteBeginAction;
export type TestBeginAction = Action<typeof actionNames.TEST_BEGIN, TestBranch>;
export declare const testBegin: (payload: TestBeginAction['payload']) => TestBeginAction;
export type TestResultAction = Action<typeof actionNames.TEST_RESULT, TestBranch>;
export declare const testResult: (payload: TestResultAction['payload']) => TestResultAction;
export type RunTestsAction = RunAllTestsAction | RunFailedTestsAction | RunSuiteAction | RunTestAction | StopTestsAction | TestsEndAction | SuiteBeginAction | TestBeginAction | TestResultAction;