@@ -57,7 +57,14 @@ private static Collection<DynamicTest> createTableTests(String path, boolean ver
5757 String testMethod = testTableFile .testMethod ().get ();
5858 String [] segments = testMethod .split ("\\ ." );
5959 if (segments .length != 2 ) {
60- throw new RuntimeException ("Invalid test method: " + testMethod );
60+ String msg = " => Test skipped: multistep test " + testMethod + " not supported in Java" ;
61+ List <DynamicTest > dynamicTests = new ArrayList <>();
62+ for (TestTableItem testTableItem : testTableFile .testTable ().get ()) {
63+ String testName =
64+ String .format ("%s.%s.%s" , testMethod , testTableItem .name ().get (), suffix );
65+ dynamicTests .add (DynamicTest .dynamicTest (testName + msg , () -> {}));
66+ }
67+ return dynamicTests ;
6168 }
6269 String originalModuleName = segments [0 ];
6370 String moduleName = Common .snakeToCamel (originalModuleName );
@@ -299,6 +306,10 @@ private static String getReplayFilePath(String testName) {
299306 Collection <DynamicTest > createTests () throws IOException {
300307 String replaysPath = System .getenv ("GOOGLE_GENAI_REPLAYS_DIRECTORY" );
301308 String testsReplaysPath = replaysPath + "/tests" ;
309+ String testsSubDir = System .getenv ("GOOGLE_GENAI_TESTS_SUBDIR" );
310+ if (testsSubDir != null ) {
311+ testsReplaysPath += "/" + testsSubDir ;
312+ }
302313 Collection <DynamicTest > dynamicTests = new ArrayList <>();
303314 Files .walk (Paths .get (testsReplaysPath ))
304315 .filter (Files ::isRegularFile )
0 commit comments