diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-01 09:11:13 -0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-01-01 10:10:19 -0800 |
commit | 9307d0735c619fcc3c654156a252526e7d2931fa (patch) | |
tree | e2c137760a39e412ebdd0684f669b620390c294d /integration/src/test/scala | |
parent | ffce2f26e02997546511e258f45f1a4554a882ca (diff) | |
download | mill-9307d0735c619fcc3c654156a252526e7d2931fa.tar.gz mill-9307d0735c619fcc3c654156a252526e7d2931fa.tar.bz2 mill-9307d0735c619fcc3c654156a252526e7d2931fa.zip |
Silence IntegrationTest stdout
Diffstat (limited to 'integration/src/test/scala')
-rw-r--r-- | integration/src/test/scala/mill/integration/IntegrationTestSuite.scala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/integration/src/test/scala/mill/integration/IntegrationTestSuite.scala b/integration/src/test/scala/mill/integration/IntegrationTestSuite.scala index e79eebe0..01e73ad5 100644 --- a/integration/src/test/scala/mill/integration/IntegrationTestSuite.scala +++ b/integration/src/test/scala/mill/integration/IntegrationTestSuite.scala @@ -1,12 +1,19 @@ package mill.integration +import java.io.{ByteArrayInputStream, ByteArrayOutputStream, InputStream, PrintStream} + import ammonite.ops._ import utest._ abstract class IntegrationTestSuite(repoKey: String, workspaceSlug: String) extends TestSuite{ val workspacePath = pwd / 'target / 'workspace / workspaceSlug val buildFilePath = pwd / 'integration / 'src / 'test / 'resource / workspaceSlug - val runner = new mill.main.MainRunner(ammonite.main.Cli.Config(wd = workspacePath), false) + val stdOutErr = new PrintStream(new ByteArrayOutputStream()) + val stdIn = new ByteArrayInputStream(Array()) + val runner = new mill.main.MainRunner( + ammonite.main.Cli.Config(wd = workspacePath), false, + stdOutErr, stdOutErr, stdIn, stdOutErr, stdOutErr + ) def eval(s: String*) = runner.runScript(workspacePath / "build.sc", s.toList) def initWorkspace() = { rm(workspacePath) |