File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import org .junit .Test ;
2+ import org .tinylog .Logger ;
23import org .variantsync .diffdetective .diff .difftree .DiffTree ;
34import org .variantsync .diffdetective .diff .difftree .serialize .*;
45import org .variantsync .diffdetective .diff .difftree .serialize .edgeformat .DefaultEdgeLabelFormat ;
@@ -45,8 +46,16 @@ public void export() throws IOException {
4546
4647 // Export the test case
4748 var tikzOutput = new ByteArrayOutputStream ();
48- new TikzExporter (format ).exportDiffTree (diffTree , tikzOutput );
4949
50- TestUtils .assertEqualToFile (Path .of ("src/test/resources/serialize/expected.tex" ), tikzOutput .toString ());
50+ try {
51+ new TikzExporter (format ).exportDiffTree (diffTree , tikzOutput );
52+ TestUtils .assertEqualToFile (Path .of ("src/test/resources/serialize/expected.tex" ), tikzOutput .toString ());
53+ } catch (IOException e ) {
54+ if (e .getMessage ().contains ("Cannot run program" )) {
55+ Logger .warn ("Missing programs! Did you install graphviz? Reason: " + e .getMessage ());
56+ } else {
57+ throw e ;
58+ }
59+ }
5160 }
5261}
You can’t perform that action at this time.
0 commit comments