Commit 2e177fd8 authored by Peter van 't Hof's avatar Peter van 't Hof
Browse files

Merge branch 'fix-bug-vcffilter' into 'develop'

Add some more to the test to vcf filter

Fixes #273 

See merge request !324
parents b9350819 be396e68
......@@ -26,7 +26,7 @@ import org.scalatest.testng.TestNGSuite
import org.testng.annotations.Test
import scala.util.Random
import scala.collection.JavaConversions._
/**
* Test class for [[VcfFilter]]
*
......@@ -77,6 +77,20 @@ class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers {
val arguments: Array[String] = Array("-I", vepped_path, "-o", tmp_path,
"--mustHaveGenotype", "Sample_101:HET")
main(arguments)
val size = new VCFFileReader(new File(tmp_path), false).size
size shouldBe 1
val tmp2 = File.createTempFile("VcfFilter", ".vcf.gz")
tmp2.deleteOnExit()
val tmp2_path = tmp2.getAbsolutePath
val arguments2: Array[String] = Array("-I", vepped_path, "-o", tmp2_path,
"--mustHaveGenotype", "Sample_101:HOM_VAR")
main(arguments2)
val size2 = new VCFFileReader(new File(tmp2_path), false).size
size2 shouldBe 0
}
@Test def testHasGenotype() = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment