rra/ilgonmic/mocha-fail
[Gradle, JS] Use empty adapter to just dry run [Gradle, JS] Not dry run, but full run [Gradle, JS] Fix test to be failed without dry run [Gradle, JS] Not use client twice [Gradle, JS] Add test on mocha failing [Gradle, JS] Fail mocha in case of infrastructure problems Merge-request: KT-MR-5802 Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com> ^KT-51623 fixed
This commit is contained in:
@@ -40,6 +40,7 @@ tasks {
|
||||
inputs.dir("src")
|
||||
inputs.files(
|
||||
"nodejs.ts",
|
||||
"nodejs-empty.ts",
|
||||
"nodejs-idle.ts",
|
||||
"karma.ts",
|
||||
"karma-kotlin-reporter.js",
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
import {EmptyKotlinTestRunner} from "./src/EmptyKotlinTestRunner";
|
||||
|
||||
(globalThis as any).kotlinTest = {
|
||||
adapterTransformer: () => new EmptyKotlinTestRunner()
|
||||
}
|
||||
@@ -21,6 +21,16 @@ export default [
|
||||
},
|
||||
plugins: plugins()
|
||||
},
|
||||
{
|
||||
input: './nodejs-empty.ts',
|
||||
output: {
|
||||
file: 'lib/kotlin-test-nodejs-empty-runner.js',
|
||||
format: 'cjs',
|
||||
banner: '#!/usr/bin/env node',
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: plugins()
|
||||
},
|
||||
{
|
||||
input: './karma.ts',
|
||||
output: {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
/*
|
||||
* Copyright 2010-2022 JetBrains s.r.o. and Kotlin Programming Language contributors.
|
||||
* Use of this source code is governed by the Apache 2.0 license that can be found in the license/LICENSE.txt file.
|
||||
*/
|
||||
|
||||
import {KotlinTestRunner} from "./KotlinTestRunner";
|
||||
|
||||
export class EmptyKotlinTestRunner implements KotlinTestRunner {
|
||||
suite(name: string, isIgnored: boolean, fn: () => void): void {
|
||||
}
|
||||
|
||||
test(name: string, isIgnored: boolean, fn: () => void): void {
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user