Skip to content

Commit 0bdefb5

Browse files
committed
fix: disable fragile ExportTest
1 parent c92a9b1 commit 0bdefb5

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

src/test/java/ExportTest.java

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import org.apache.commons.io.IOUtils;
2+
import org.junit.jupiter.api.Disabled;
23
import org.junit.jupiter.api.Test;
34
import org.junit.jupiter.api.condition.EnabledIf;
45
import org.variantsync.diffdetective.variation.diff.DiffTree;
@@ -8,14 +9,14 @@
89
import org.variantsync.diffdetective.variation.diff.serialize.nodeformat.LineNumberFormat;
910
import org.variantsync.diffdetective.variation.diff.serialize.treeformat.CommitDiffDiffTreeLabelFormat;
1011

11-
import static org.junit.jupiter.api.Assertions.fail;
12-
1312
import java.io.BufferedOutputStream;
1413
import java.io.BufferedReader;
1514
import java.io.IOException;
1615
import java.nio.file.Files;
1716
import java.nio.file.Path;
1817

18+
import static org.junit.jupiter.api.Assertions.fail;
19+
1920
public class ExportTest {
2021
private final static Path RESOURCE_DIR = Path.of("src/test/resources/serialize");
2122

@@ -51,6 +52,11 @@ public static boolean isGraphvizInstalled() throws InterruptedException {
5152

5253
@Test
5354
@EnabledIf("isGraphvizInstalled")
55+
@Disabled
56+
/* Paul:
57+
* I disabled this testcase because it is too vulnerable to randomness by graphviz.
58+
* Tiny changes in coordinates make the test fail although the exportex tex file is fine.
59+
*/
5460
public void export() throws IOException {
5561
var testCasePath = RESOURCE_DIR.resolve("testcase.lg");
5662
var actualPath = RESOURCE_DIR.resolve("actual.tex");

0 commit comments

Comments
 (0)