From 226ffb6c7e21ec7a9767a61fb6344dcfb81fd75b Mon Sep 17 00:00:00 2001 From: Anton Bannykh Date: Tue, 15 Aug 2017 15:43:43 +0300 Subject: [PATCH] JS: write integration test outputs to a file to prevent polluting the log with expected test failures --- libraries/kotlin.test/js/it/build.gradle | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/libraries/kotlin.test/js/it/build.gradle b/libraries/kotlin.test/js/it/build.gradle index 6206725604a..e6ffa0073ea 100644 --- a/libraries/kotlin.test/js/it/build.gradle +++ b/libraries/kotlin.test/js/it/build.gradle @@ -51,22 +51,38 @@ node { task testJest(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) { args = ['run', 'test-jest'] + execOverrides { + it.standardOutput = new FileOutputStream("$buildDir/test-jest.log") + it.errorOutput = new FileOutputStream("$buildDir/test-jest.err.log") + } } task testJasmine(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) { args = ['run', 'test-jasmine'] + execOverrides { + it.standardOutput = new FileOutputStream("$buildDir/test-jasmine.log") + } } task testMocha(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) { args = ['run', 'test-mocha'] + execOverrides { + it.standardOutput = new FileOutputStream("$buildDir/test-mocha.log") + } } task testQunit(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) { args = ['run', 'test-qunit'] + execOverrides { + it.standardOutput = new FileOutputStream("$buildDir/test-qunit.log") + } } task testTape(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) { args = ['run', 'test-tape'] + execOverrides { + it.standardOutput = new FileOutputStream("$buildDir/test-tape.log") + } } [testJest, testJasmine, testMocha, testQunit, testTape].each {