Commit 7c3a9d09 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Redirecting output to a file

parent a386583c
...@@ -23,13 +23,14 @@ class SummaryToTsvTest extends TestNGSuite with MockitoSugar with Matchers { ...@@ -23,13 +23,14 @@ class SummaryToTsvTest extends TestNGSuite with MockitoSugar with Matchers {
@Test @Test
def testMain = { def testMain = {
val tsv = resourcePath("/test.summary.json") val tsv = resourcePath("/test.summary.json")
val output = File.createTempFile("main", "tsv")
noException should be thrownBy main(Array("-s", tsv, "-p", "something=flexiprep:settings:skip_trim", noException should be thrownBy main(Array("-s", tsv, "-p", "something=flexiprep:settings:skip_trim",
"-m", "root")) "-m", "root", "-o", output.toString))
noException should be thrownBy main(Array("-s", tsv, "-p", "something=flexiprep:settings:skip_trim", noException should be thrownBy main(Array("-s", tsv, "-p", "something=flexiprep:settings:skip_trim",
"-m", "sample")) "-m", "sample", output.toString))
noException should be thrownBy main(Array("-s", tsv, "-p", "something=flexiprep:settings:skip_trim", noException should be thrownBy main(Array("-s", tsv, "-p", "something=flexiprep:settings:skip_trim",
"-m", "lib")) "-m", "lib", output.toString))
} }
@Test @Test
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment