File tree Expand file tree Collapse file tree
test/org/lwjgl/opengl/awt Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -297,8 +297,11 @@ public void run() {
297297 screenShotSuffix = "_" + screenShotIndex ;
298298 }
299299
300+ File outputDir = new File ("build/test-screenshots" );
301+ outputDir .mkdirs ();
302+
300303 ImageIO .write (background , "png" , new File (
301- new File ( "target" ) ,
304+ outputDir ,
302305 System .getProperty ("os.name" ) + "_" +
303306 testInfo .getTestClass ().map (Class ::getSimpleName ).orElse ("unknown" ) + "_" +
304307 testInfo .getTestMethod ().map (Method ::getName ).orElse ("unknown" ) + screenShotSuffix + ".png" ));
@@ -312,7 +315,7 @@ public void run() {
312315 testInfo .getTestMethod ().map (Method ::getName ).orElse ("unknown" ) + screenShotSuffix + ".png" ));
313316
314317 File resultDestination = new File (
315- new File ( "target" ) ,
318+ outputDir ,
316319 System .getProperty ("os.name" ) + "_" +
317320 testInfo .getTestClass ().map (Class ::getSimpleName ).orElse ("unknown" ) + "_" +
318321 testInfo .getTestMethod ().map (Method ::getName ).orElse ("unknown" ) + screenShotSuffix + "_diff.png" );
You can’t perform that action at this time.
0 commit comments