Skip to content
Snippets Groups Projects
Commit 30696cab authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Fixed unit tests

parent dd9a7060
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ class ShivaVariantcallingTest extends TestNGSuite with Matchers { ...@@ -77,7 +77,7 @@ class ShivaVariantcallingTest extends TestNGSuite with Matchers {
pipeline.inputBams = (for (n <- 1 to bams) yield n.toString -> ShivaVariantcallingTest.inputTouch("bam_" + n + ".bam")).toMap pipeline.inputBams = (for (n <- 1 to bams) yield n.toString -> ShivaVariantcallingTest.inputTouch("bam_" + n + ".bam")).toMap
val illegalArgumentException = pipeline.inputBams.isEmpty || (!raw && !bcftools && !bcftoolsSinglesample && !freebayes) val illegalArgumentException = pipeline.inputBams.isEmpty || (!raw && !bcftools && !bcftoolsSinglesample && !freebayes && !varscanCnsSinglesample)
if (illegalArgumentException) intercept[IllegalArgumentException] { if (illegalArgumentException) intercept[IllegalArgumentException] {
pipeline.script() pipeline.script()
...@@ -86,7 +86,7 @@ class ShivaVariantcallingTest extends TestNGSuite with Matchers { ...@@ -86,7 +86,7 @@ class ShivaVariantcallingTest extends TestNGSuite with Matchers {
if (!illegalArgumentException) { if (!illegalArgumentException) {
pipeline.script() pipeline.script()
pipeline.functions.count(_.isInstanceOf[CombineVariants]) shouldBe 1 + (if (raw) 1 else 0) pipeline.functions.count(_.isInstanceOf[CombineVariants]) shouldBe (1 + (if (raw) 1 else 0) + (if (varscanCnsSinglesample) 1 else 0))
//pipeline.functions.count(_.isInstanceOf[Bcftools]) shouldBe (if (bcftools) 1 else 0) //pipeline.functions.count(_.isInstanceOf[Bcftools]) shouldBe (if (bcftools) 1 else 0)
//FIXME: Can not check for bcftools because of piping //FIXME: Can not check for bcftools because of piping
pipeline.functions.count(_.isInstanceOf[Freebayes]) shouldBe (if (freebayes) 1 else 0) pipeline.functions.count(_.isInstanceOf[Freebayes]) shouldBe (if (freebayes) 1 else 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment