[go: nahoru, domu]

Skip to content

Commit

Permalink
created an interface for the haploytpe caller integraiton tests betwe…
Browse files Browse the repository at this point in the history
…en spark and non-spark versions
  • Loading branch information
jamesemery committed Nov 27, 2018
1 parent e4bd5da commit 6fbdbbe
Show file tree
Hide file tree
Showing 3 changed files with 675 additions and 631 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.broadinstitute.hellbender.exceptions.UserException;
import org.broadinstitute.hellbender.testutils.IntegrationTestSpec;
import org.broadinstitute.hellbender.tools.walkers.genotyper.GenotypeCalculationArgumentCollection;
import org.broadinstitute.hellbender.tools.walkers.haplotypecaller.AbstractHaplotypeCallerIntegrationTest;
import org.broadinstitute.hellbender.tools.walkers.haplotypecaller.HaplotypeCallerArgumentCollection;
import org.broadinstitute.hellbender.utils.Utils;
import org.broadinstitute.hellbender.GATKBaseTest;
Expand All @@ -23,12 +24,13 @@
import java.io.File;
import java.io.IOException;
import java.util.Collections;
import java.util.List;

import org.broadinstitute.hellbender.tools.walkers.haplotypecaller.HaplotypeCallerIntegrationTest;

@Test(groups = {"variantcalling"})
// Selected tests copied from HaplotypeCallerIntegrationTest
public class HaplotypeCallerSparkIntegrationTest extends CommandLineProgramTest {
public class HaplotypeCallerSparkIntegrationTest extends AbstractHaplotypeCallerIntegrationTest {

// If true, update the expected outputs in tests that assert an exact match vs. prior output,
// instead of actually running the tests. Can be used with "./gradlew test -Dtest.single=HaplotypeCallerIntegrationTest"
Expand All @@ -46,6 +48,11 @@ public void assertThatExpectedOutputUpdateToggleIsDisabled() {
Assert.assertFalse(UPDATE_EXACT_MATCH_EXPECTED_OUTPUTS, "The toggle to update expected outputs should not be left enabled");
}

@Override
public List<String> getToolSpecificArguments() {
return Collections.singletonList("--strict");
}

@DataProvider(name = "HaplotypeCallerTestInputs")
public Object[][] getHaplotypCallerTestInputs() {
return new Object[][]{
Expand Down
Loading

0 comments on commit 6fbdbbe

Please sign in to comment.