Skip to content

Commit

Permalink
🔊 change the test done-ness indicator
Browse files Browse the repository at this point in the history
  • Loading branch information
ebullient committed Apr 18, 2024
1 parent 2d4e0c7 commit bc7ce40
Show file tree
Hide file tree
Showing 10 changed files with 54 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/test/java/dev/ebullient/convert/CustomTemplatesTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.ArrayList;
import java.util.List;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -26,6 +27,11 @@ public static void setupDir() {
setupDir("Tools5eDataConvertTest");
}

@AfterAll
public static void cleanup() {
System.out.println("Done.");
}

public static void setupDir(String root) {
tui = new Tui();
tui.init(null, false, false);
Expand Down
6 changes: 6 additions & 0 deletions src/test/java/dev/ebullient/convert/Pf2eDataConvertTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.ArrayList;
import java.util.List;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -24,6 +25,11 @@ public static void setupDir() {
setupDir("Pf2eDataConvertTest");
}

@AfterAll
public static void cleanup() {
System.out.println("Done.");
}

public static void setupDir(String root) {
tui = new Tui();
tui.init(null, false, false);
Expand Down
1 change: 0 additions & 1 deletion src/test/java/dev/ebullient/convert/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,6 @@ public static void assertDirectoryContents(Path directory, Tui tui) {
public static void assertDirectoryContents(Path directory, Tui tui, BiFunction<Path, List<String>, List<String>> checker) {
List<String> errors = checkDirectoryContents(directory, tui, checker);
assertThat(errors).isEmpty();
System.out.println("Done.");
}

public static void assertMarkdownLinks(Path filePath, Tui tui) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import java.util.ArrayList;
import java.util.List;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand Down Expand Up @@ -34,6 +35,11 @@ public static void setupDir() {
TestUtils.PATH_5E_HOMEBREW);
}

@AfterAll
public static void cleanup() {
System.out.println("Done.");
}

public static void setupDir(String root) {
tui = new Tui();
tui.init(null, false, false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.nio.file.Path;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand All @@ -23,6 +24,11 @@ public static void setupDir() throws Exception {
commonTests = new CommonDataTests(TestInput.none, TestUtils.PATH_5E_TOOLS_DATA);
}

@AfterAll
public static void done() {
System.out.println("Done.");
}

@AfterEach
public void cleanup() {
commonTests.cleanup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.nio.file.Path;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand All @@ -26,6 +27,11 @@ public static void setupDir() throws Exception {
commonTests = new CommonDataTests(TestInput.subset, TestUtils.PATH_5E_TOOLS_DATA);
}

@AfterAll
public static void done() {
System.out.println("Done.");
}

@AfterEach
public void cleanup() {
commonTests.cleanup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import java.nio.file.Path;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;
Expand All @@ -26,6 +27,11 @@ public static void setupDir() throws Exception {
commonTests = new CommonDataTests(TestInput.all, TestUtils.PATH_5E_TOOLS_DATA);
}

@AfterAll
public static void done() {
System.out.println("Done.");
}

@AfterEach
public void cleanup() {
commonTests.cleanup();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.List;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -19,6 +20,11 @@ public static void setupDir() throws Exception {
commonTests = new CommonDataTests(TestInput.none);
}

@AfterAll
public static void done() {
System.out.println("Done.");
}

@Test
public void testIndex_p2fe() throws Exception {
commonTests.testDataIndex_pf2e();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.List;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -19,6 +20,11 @@ public static void setupDir() throws Exception {
commonTests = new CommonDataTests(TestInput.partial);
}

@AfterAll
public static void done() {
System.out.println("Done.");
}

@Test
public void testIndex_p2fe() throws Exception {
commonTests.testDataIndex_pf2e();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.util.List;

import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.Test;

Expand All @@ -19,6 +20,11 @@ public static void setupDir() throws Exception {
commonTests = new CommonDataTests(TestInput.all);
}

@AfterAll
public static void done() {
System.out.println("Done.");
}

@Test
public void testIndex_p2fe() throws Exception {
commonTests.testDataIndex_pf2e();
Expand Down

0 comments on commit bc7ce40

Please sign in to comment.