Skip to content
Snippets Groups Projects
Commit 31d6ba36 authored by Sander Bollen's avatar Sander Bollen
Browse files

adding VcfFilterTest stub

parent 986ffe92
No related branches found
No related tags found
No related merge requests found
package nl.lumc.sasc.biopet.tools
import java.nio.file.Paths
import org.testng.annotations.Test
import org.scalatest.Matchers
import org.scalatest.mock.MockitoSugar
import org.scalatest.testng.TestNGSuite
import scala.util.Random
/**
* Created by ahbbollen on 9-4-15.
*/
class VcfFilterTest extends TestNGSuite with MockitoSugar with Matchers {
import VcfFilter._
private def resourcePath(p: String): String = {
Paths.get(getClass.getResource(p).toURI).toString
}
val vepped_path = resourcePath("/VEP_oneline.vcf")
val rand = new Random()
@Test def testOutputTypeVcf() = {
val tmp_path = "/tmp/VcfFilter_" + rand.nextString(10) + ".vcf"
val arguments: Array[String] = Array("-I", vepped_path, "-o", tmp_path)
main(arguments)
}
@Test def testOutputTypeBcf() = {
val tmp_path = "/tmp/VcfFilter_" + rand.nextString(10) + ".bcf"
val arguments: Array[String] = Array("-I", vepped_path, "-o", tmp_path)
main(arguments)
}
@Test def testOutputTypeVcfGz() = {
val tmp_path = "/tmp/VcfFilter_" + rand.nextString(10) + ".vcf.gz"
val arguments: Array[String] = Array("-I", vepped_path, "-o", tmp_path)
main(arguments)
}
}
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