Skip to content

Commit

Permalink
fixed DirichletAlleleDepthAndFractionIntegrationTest (#7963)
Browse files Browse the repository at this point in the history
* disabled the toggle which was overwriting the test values every time and added a safety check
  • Loading branch information
jamesemery committed Dec 23, 2022
1 parent 640d921 commit b203569
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.broadinstitute.hellbender.tools.walkers.haplotypecaller.HaplotypeCaller;
import org.broadinstitute.hellbender.tools.walkers.mutect.SomaticLikelihoodsEngine;
import org.broadinstitute.hellbender.utils.Utils;
import org.testng.Assert;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;

Expand All @@ -20,13 +21,21 @@ public class DirichletAlleleDepthAndFractionIntegrationTest extends GatkToolInte

public static final String TEST_FILES_DIR = toolsTestDir + "haplotypecaller/";

public static final boolean UPDATE_EXACT_MATCH_EXPECTED_OUTPUTS = true;
public static final boolean UPDATE_EXACT_MATCH_EXPECTED_OUTPUTS = false;

@Override
public String getTestedToolName() {
return HaplotypeCaller.class.getSimpleName();
}

/*
* Make sure that someone didn't leave the UPDATE_EXACT_MATCH_EXPECTED_OUTPUTS toggle turned on
*/
@Test
public void assertThatExpectedOutputUpdateToggleIsDisabled() {
Assert.assertFalse(UPDATE_EXACT_MATCH_EXPECTED_OUTPUTS, "The toggle to update expected outputs should not be left enabled");
}

/*
* Test that in VCF mode we're consistent with past GATK4 results
*/
Expand Down

0 comments on commit b203569

Please sign in to comment.