[Gradle, JS] Add idle run for debug node tests
Source maps can be loaded by NodeJS
This commit is contained in:
@@ -51,6 +51,7 @@ tasks {
|
||||
inputs.dir("src")
|
||||
inputs.files(
|
||||
"nodejs.ts",
|
||||
"nodejs-idle.ts",
|
||||
"karma.ts",
|
||||
"karma-kotlin-reporter.js",
|
||||
"karma-debug-runner.js",
|
||||
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
import {KotlinTestRunner} from "./src/KotlinTestRunner";
|
||||
|
||||
const kotlin_test = require('kotlin-test');
|
||||
|
||||
const nothingTest: KotlinTestRunner = {
|
||||
suite(name: string, isIgnored: boolean, fn: () => void): void {
|
||||
console.error("suite", name)
|
||||
},
|
||||
test(name: string, isIgnored: boolean, fn: () => void): void {
|
||||
console.error("test", name)
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
kotlin_test.setAdapter(nothingTest);
|
||||
@@ -16,6 +16,16 @@ export default [
|
||||
},
|
||||
plugins: plugins()
|
||||
},
|
||||
{
|
||||
input: './nodejs-idle.ts',
|
||||
output: {
|
||||
file: 'lib/kotlin-test-nodejs-idle-runner.js',
|
||||
format: 'cjs',
|
||||
banner: '#!/usr/bin/env node',
|
||||
sourcemap: true
|
||||
},
|
||||
plugins: plugins()
|
||||
},
|
||||
{
|
||||
input: './karma.ts',
|
||||
output: {
|
||||
|
||||
Reference in New Issue
Block a user