From 758611576a4f6ceb7020e3cee1f70bbd1cc0b4d8 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Wed, 22 Mar 2017 10:11:46 -0400 Subject: ScalaPB plugin --- test/test.scala | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/test.scala b/test/test.scala index 6004311..61e98df 100644 --- a/test/test.scala +++ b/test/test.scala @@ -268,6 +268,12 @@ object Main{ assert(res.out contains "version: 0.1", res.out) } + { + val res = runCbt("../examples/scalapb-example", Seq("run")) + assert(res.exit0) + assert(res.out contains "age: 123", res.out ++ "\n--\n" ++ res.err) + } + { val res = runCbt("broken-build/build-class-with-wrong-arguments", Seq("run")) assert(!res.exit0) -- cgit v1.2.3 From 01855e0ed4eae2b1ab11b854176da940347f6131 Mon Sep 17 00:00:00 2001 From: Christopher Vogt Date: Mon, 20 Mar 2017 22:59:11 -0400 Subject: clean scalafix test before running, so it sure runs --- test/test.scala | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/test.scala b/test/test.scala index 61e98df..7447a5c 100644 --- a/test/test.scala +++ b/test/test.scala @@ -393,6 +393,7 @@ object Main{ { val sourceFile = cbtHome / "examples" / "scalafix-example" / "Main.scala" val sourceBefore = sourceFile.readAsString + runCbt("../examples/scalafix-example", Seq("clean","force")) val res = runCbt("../examples/scalafix-example", Seq("compile")) assert(res.exit0) val sourceAfter = sourceFile.readAsString -- cgit v1.2.3