diff options
author | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-27 19:34:48 -0400 |
---|---|---|
committer | Christopher Vogt <oss.nsp@cvogt.org> | 2017-03-28 09:39:16 -0400 |
commit | 26021f5e462fb9a5633a5f565235a2829fb6132b (patch) | |
tree | 6d75c89f145fc6319ff88316bdcbf97ed6ca4beb /test/test.scala | |
parent | cf0c79a78924ca15b81494da05af7e0b48fe2c7e (diff) | |
download | cbt-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/test.scala')
-rw-r--r-- | test/test.scala | 8 |
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")) |