From 8840e75403c622b707f06f4b9f0c00ef5fb87264 Mon Sep 17 00:00:00 2001 From: "James A. Overton" Date: Wed, 7 Feb 2024 14:15:29 -0500 Subject: [PATCH] Catch test blocks at ends of md files --- .../src/test/java/org/obolibrary/robot/CommandLineIT.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/robot-command/src/test/java/org/obolibrary/robot/CommandLineIT.java b/robot-command/src/test/java/org/obolibrary/robot/CommandLineIT.java index e5ce8e031..6b636bf77 100644 --- a/robot-command/src/test/java/org/obolibrary/robot/CommandLineIT.java +++ b/robot-command/src/test/java/org/obolibrary/robot/CommandLineIT.java @@ -76,6 +76,10 @@ private List extractCommands(File docFile) throws IOException { } } } + // Catch test blocks at the end of the file. + if (collecting && collected != null) { + commands.add(collected); + } return commands; }