Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
test fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Aug 22, 2019
1 parent f2d874d commit a39488f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/test/scala/dagr/core/cmdline/DagrCoreMainTest.scala
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

package dagr.core.cmdline

import dagr.core.cmdline.pipelines.PipelineFour
import dagr.core.cmdline.pipelines.{PipelineFour, PipelineBuildFailure}
import dagr.core.tasksystem.{NoOpInJvmTask, Pipeline}
import com.fulcrumgenomics.commons.io.Io
import com.fulcrumgenomics.sopt.util.TermCode
Expand Down Expand Up @@ -119,7 +119,7 @@ class DagrCoreMainTest extends UnitSpec with BeforeAndAfterAll with CaptureSyste
}

it should "print the execution failure upon failure" in {
val (_, _, _, log) = testParse(Array[String](nameOf(classOf[PipelineFour])))
val (_, _, _, log) = testParse(Array[String](nameOf(classOf[PipelineBuildFailure])))
log should include("Elapsed time:")
log should include("dagr failed")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,9 @@ private[cmdline] case class PipelineFour
@clp(description = "", group = classOf[TestGroup], hidden = true)
private[cmdline] case class PipelineWithMutex
(@arg(mutex = Array("another")) var argument: String, @arg(mutex = Array("argument")) var another: String) extends CommandLineTaskTesting // argument should be required

@clp(description = "", group = classOf[TestGroup], hidden = true)
private[cmdline] case class PipelineBuildFailure
(@arg var argument: String = "default", @arg var flag: Boolean = false) extends CommandLineTaskTesting {
override def build(): Unit = throw new IllegalStateException()
}

0 comments on commit a39488f

Please sign in to comment.