aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorChristopher Vogt <oss.nsp@cvogt.org>2017-03-27 19:34:48 -0400
committerChristopher Vogt <oss.nsp@cvogt.org>2017-03-28 09:39:16 -0400
commit26021f5e462fb9a5633a5f565235a2829fb6132b (patch)
tree6d75c89f145fc6319ff88316bdcbf97ed6ca4beb /test
parentcf0c79a78924ca15b81494da05af7e0b48fe2c7e (diff)
downloadcbt-26021f5e462fb9a5633a5f565235a2829fb6132b.tar.gz
cbt-26021f5e462fb9a5633a5f565235a2829fb6132b.tar.bz2
cbt-26021f5e462fb9a5633a5f565235a2829fb6132b.zip
add example showing how to use scalafix to produce cross builds
Diffstat (limited to 'test')
-rw-r--r--test/test.scala8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala
index b97c36e..f3fb7c5 100644
--- a/test/test.scala
+++ b/test/test.scala
@@ -427,6 +427,14 @@ object Main{
}
{
+ val res = runCbt("../examples/cross-rewrite-example", Seq("cross.exportedClasspath"))
+ assert(res.exit0)
+ Seq("cats","scalaz","2.11.8","2.12.1").foreach(
+ s => assert(res.out contains s, res.out)
+ )
+ }
+
+ {
val sourceFile = cbtHome / "examples" / "scalafix-compiler-plugin-example" / "Main.scala"
val sourceBefore = sourceFile.readAsString
runCbt("../examples/scalafix-compiler-plugin-example", Seq("clean","force"))