JS: write integration test outputs to a file to prevent polluting the log with expected test failures

This commit is contained in:
Anton Bannykh
2017-08-15 15:43:43 +03:00
parent 6a4ea8b669
commit 226ffb6c7e
+16
View File
@@ -51,22 +51,38 @@ node {
task testJest(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) { task testJest(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) {
args = ['run', 'test-jest'] 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]) { task testJasmine(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) {
args = ['run', 'test-jasmine'] args = ['run', 'test-jasmine']
execOverrides {
it.standardOutput = new FileOutputStream("$buildDir/test-jasmine.log")
}
} }
task testMocha(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) { task testMocha(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) {
args = ['run', 'test-mocha'] args = ['run', 'test-mocha']
execOverrides {
it.standardOutput = new FileOutputStream("$buildDir/test-mocha.log")
}
} }
task testQunit(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) { task testQunit(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) {
args = ['run', 'test-qunit'] args = ['run', 'test-qunit']
execOverrides {
it.standardOutput = new FileOutputStream("$buildDir/test-qunit.log")
}
} }
task testTape(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) { task testTape(type: NpmTask, dependsOn: [compileTestKotlin2Js, compileTestKotlin2Js, npmInstall]) {
args = ['run', 'test-tape'] args = ['run', 'test-tape']
execOverrides {
it.standardOutput = new FileOutputStream("$buildDir/test-tape.log")
}
} }
[testJest, testJasmine, testMocha, testQunit, testTape].each { [testJest, testJasmine, testMocha, testQunit, testTape].each {