JS: write integration test outputs to a file to prevent polluting the log with expected test failures
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user