diff options
author | Ilya Kirillov <darthorimar@users.noreply.github.com> | 2017-07-17 19:02:32 +0300 |
---|---|---|
committer | Ilya Kirillov <darthorimar@users.noreply.github.com> | 2017-07-17 19:34:17 +0300 |
commit | e098ec58f6191b4934276dc5a3d65279f79cbbcc (patch) | |
tree | 57f7240b49c9595951d53f5b652393a98ac5dced /test | |
parent | d316f02fb73de71d028940fd597aaa1f6d3449fb (diff) | |
download | cbt-e098ec58f6191b4934276dc5a3d65279f79cbbcc.tar.gz cbt-e098ec58f6191b4934276dc5a3d65279f79cbbcc.tar.bz2 cbt-e098ec58f6191b4934276dc5a3d65279f79cbbcc.zip |
Add test
Diffstat (limited to 'test')
-rw-r--r-- | test/test.scala | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/test.scala b/test/test.scala index 9cb7fd9..adb4d8a 100644 --- a/test/test.scala +++ b/test/test.scala @@ -506,6 +506,17 @@ object Main{ assert(res.exit0) } + if (slow) { + import scala.xml._ + val expected = + (cbtHome / "examples" / "export-build-information" / "expected.xml").readAsString.replaceAll("CBT_HOME", cbtHome.getPath) + val expectedXml = Utility.trim(XML.loadString(expected)) + val res = runCbt("../examples/export-build-information", Seq("buildInfoXml")) + assert(res.exit0) + val resultXml = Utility.trim(XML.loadString(res.out)) + assert(resultXml == expectedXml) + } + /* // currently fails with // java.lang.UnsupportedOperationException: scalafix.rewrite.ScalafixMirror.fromMirror $anon#typeSignature requires the semantic api |