We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffebb7e commit f7a67eaCopy full SHA for f7a67ea
src/test/java/org/example/training/HelloWorldTest.java
@@ -31,8 +31,9 @@ public void writeToResourcesDir() throws IOException {
31
// Simple timer
32
long startTime = System.nanoTime();
33
34
- // resolve a file in the data dir (data/timing.txt)
35
- Path timingFile = Paths.get("data/timing.txt");
+ // resolve a file relative to the `target` directory
+ Path timingFile = Paths.get("./target/test-output/timing.txt");
36
+ Files.createDirectories(timingFile.getParent());
37
38
// Record the time
39
long timeTaken = System.nanoTime() - startTime;
0 commit comments