summaryrefslogtreecommitdiff
path: root/scalalib/src
diff options
context:
space:
mode:
authorAlexandra Dima <alexandra.dima@jetbrains.com>2019-07-15 13:56:30 +0200
committerSamvel Abrahamyan <samvel1024@gmail.com>2019-10-12 14:33:03 +0200
commitd7c7217b66322d740d28f42cc161d36c76b34d71 (patch)
treefe3e2a3958d8ef0f6f9e387cfebc554b4ca83666 /scalalib/src
parent2be400138fb32a63a3bb05e6fdec31508673331b (diff)
downloadmill-d7c7217b66322d740d28f42cc161d36c76b34d71.tar.gz
mill-d7c7217b66322d740d28f42cc161d36c76b34d71.tar.bz2
mill-d7c7217b66322d740d28f42cc161d36c76b34d71.zip
Refactored MillBuildServer by putting the future completion at the end of each method in a separate function which now also throws exceptions if a request is made before initialize. Also gave all JavaModules the run capability.
Diffstat (limited to 'scalalib/src')
-rw-r--r--scalalib/src/TestRunner.scala15
1 files changed, 8 insertions, 7 deletions
diff --git a/scalalib/src/TestRunner.scala b/scalalib/src/TestRunner.scala
index c2017c77..2e6c2ba9 100644
--- a/scalalib/src/TestRunner.scala
+++ b/scalalib/src/TestRunner.scala
@@ -95,6 +95,7 @@ object TestRunner {
def handle(event: Event) = {
testReporter.logStart(event)
events.append(event)
+ testReporter.logFinish(event)
}
},
Array(
@@ -120,19 +121,19 @@ object TestRunner {
val results = for(e <- events) yield {
val ex = if (e.throwable().isDefined) Some(e.throwable().get) else None
mill.scalalib.TestRunner.Result(
- e.fullyQualifiedName(),
- e.selector() match{
+ e.fullyQualifiedName(),
+ e.selector() match{
case s: NestedSuiteSelector => s.suiteId()
case s: NestedTestSelector => s.suiteId() + "." + s.testName()
case s: SuiteSelector => s.toString
case s: TestSelector => s.testName()
case s: TestWildcardSelector => s.testWildcard()
},
- e.duration(),
- e.status().toString,
- ex.map(_.getClass.getName),
- ex.map(_.getMessage),
- ex.map(_.getStackTrace)
+ e.duration(),
+ e.status().toString,
+ ex.map(_.getClass.getName),
+ ex.map(_.getMessage),
+ ex.map(_.getStackTrace)
)
}