summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2017-11-03 23:57:22 -0700
committerLi Haoyi <haoyi.sg@gmail.com>2017-11-03 23:57:22 -0700
commit118b10c542157e0a26938e86691ff9faac403ab7 (patch)
tree204203f0f24a56aa63911b3550c06fef3f6672ef
parent4ca07a0d1e151a4507dd312ee3ee25ac4320fb1c (diff)
downloadmill-118b10c542157e0a26938e86691ff9faac403ab7.tar.gz
mill-118b10c542157e0a26938e86691ff9faac403ab7.tar.bz2
mill-118b10c542157e0a26938e86691ff9faac403ab7.zip
Rename `IntegrationTests` to `JavaCompileJarTests`, make use of new `T{...}` macro in it
-rw-r--r--core/src/test/scala/forge/JavaCompileJarTests.scala (renamed from core/src/test/scala/forge/IntegrationTests.scala)9
1 files changed, 4 insertions, 5 deletions
diff --git a/core/src/test/scala/forge/IntegrationTests.scala b/core/src/test/scala/forge/JavaCompileJarTests.scala
index 03173eac..c1a055ea 100644
--- a/core/src/test/scala/forge/IntegrationTests.scala
+++ b/core/src/test/scala/forge/JavaCompileJarTests.scala
@@ -7,7 +7,7 @@ import ammonite.ops._
import forge.util.{Args, OSet, PathRef}
import utest._
-object IntegrationTests extends TestSuite{
+object JavaCompileJarTests extends TestSuite{
def compileAll(sources: Target[Seq[PathRef]]) = {
new Target.Subprocess(
Seq(sources),
@@ -18,9 +18,6 @@ object IntegrationTests extends TestSuite{
).map(_.dest)
}
- def list(root: Target[PathRef]): Target[Seq[PathRef]] = {
- root.map(x => ls.rec(x.path).map(PathRef(_)))
- }
case class jarUp(roots: Target[PathRef]*) extends Target[PathRef]{
@@ -63,7 +60,9 @@ object IntegrationTests extends TestSuite{
// resourceRoot ----> jar
val sourceRoot = Target.path(sourceRootPath)
val resourceRoot = Target.path(resourceRootPath)
- val allSources = list(sourceRoot)
+ val allSources = T{
+ ls.rec(sourceRoot().path).map(PathRef(_))
+ }
val classFiles = compileAll(allSources)
val jar = jarUp(resourceRoot, classFiles)
}