diff options
author | Jan Christopher Vogt <oss.nsp@cvogt.org> | 2017-07-19 11:33:38 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-19 11:33:38 -0600 |
commit | 3c666efaeecbc35e75f273f5078477f6714c84d4 (patch) | |
tree | a24079631cab91481b7271edf85e3608eaa04187 /test/test.scala | |
parent | c339af9ad9b2799a1c3c7aa7815e1f16a8afb41f (diff) | |
parent | e098ec58f6191b4934276dc5a3d65279f79cbbcc (diff) | |
download | cbt-3c666efaeecbc35e75f273f5078477f6714c84d4.tar.gz cbt-3c666efaeecbc35e75f273f5078477f6714c84d4.tar.bz2 cbt-3c666efaeecbc35e75f273f5078477f6714c84d4.zip |
Merge pull request #549 from darthorimar/build-info
Build info #4
Diffstat (limited to 'test/test.scala')
-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 |