[Gradle, JS] Remove redundant related with JS test run
This commit is contained in:
@@ -7,7 +7,7 @@ import {CliArgValues} from "./CliArgsParser";
|
||||
import {KotlinTestRunner} from "./KotlinTestRunner";
|
||||
import {configureFiltering} from "./CliFiltertingConfiguration";
|
||||
|
||||
export function getFilteringAdapter(
|
||||
export function runWithFilteringAdapter(
|
||||
initialAdapter: KotlinTestRunner,
|
||||
cliArgsValue: CliArgValues
|
||||
): KotlinTestRunner {
|
||||
|
||||
@@ -2,13 +2,4 @@ export interface KotlinTestRunner {
|
||||
suite(name: string, isIgnored: boolean, fn: () => void): void
|
||||
|
||||
test(name: string, isIgnored: boolean, fn: () => void): void
|
||||
}
|
||||
|
||||
export const directRunner: KotlinTestRunner = {
|
||||
suite(name: string, isIgnored: boolean, fn: () => void): void {
|
||||
if (!isIgnored) fn()
|
||||
},
|
||||
test(name: string, isIgnored: boolean, fn: () => void): void {
|
||||
if (!isIgnored) fn()
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -18,7 +18,7 @@ function withName(name: string, data?: TeamCityMessageData): TeamCityMessageData
|
||||
return data
|
||||
}
|
||||
|
||||
export function runWithTeamCityReporter(
|
||||
export function runWithTeamCityConsoleAdapter(
|
||||
runner: KotlinTestRunner,
|
||||
teamCity: TeamCityMessagesFlow
|
||||
): KotlinTestRunner {
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
export interface Timer<T> {
|
||||
start(): T
|
||||
|
||||
end(start: T): number
|
||||
}
|
||||
|
||||
export const hrTimer: Timer<[number, number]> = {
|
||||
start(): [number, number] {
|
||||
return process.hrtime();
|
||||
},
|
||||
end(start: [number, number]): number {
|
||||
const elapsedHr = process.hrtime(start);
|
||||
return elapsedHr[0] + (elapsedHr[1] / 1e6); // ns to ms
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user