All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.virtuslab.ideprobe.pants.PantsBuildResult.scala Maven / Gradle / Ivy

The newest version!
package org.virtuslab.ideprobe.pants

case class PantsBuildResult(status: PantsBuildResult.Status.Value, output: String) {
  def assertSuccess(): Unit =
    if (isFailed) throw new AssertionError(s"Build did not succeed:\n$output")
  def isSuccessful: Boolean = status == PantsBuildResult.Status.Passed
  def isFailed: Boolean = !isSuccessful
}

object PantsBuildResult {
  object Status extends Enumeration {
    val Passed, Failed, Timeout = Value
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy