Skip to content

Commit

Permalink
feat(#3092): test case
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Apr 27, 2024
1 parent f857530 commit 5ac212c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
*/
@ExtendWith(WeAreOnline.class)
@SuppressWarnings({"JTCOP.RuleAllTestsHaveProductionClass", "JTCOP.RuleNotContainsTestWord"})
final class SnippetCaseTest {
final class SnippetTestCase {
@ParameterizedTest
@Tag("slow")
@ExtendWith(WeAreOnline.class)
Expand All @@ -85,7 +85,7 @@ void runsAllSnippets(final String yml, final @TempDir Path temp) throws IOExcept
.file(String.format("src/main/eo/%s", file))
.write(String.format("%s\n", map.get("eo")))
.show();
SnippetCaseTest.copySources(f, "src/main/eo");
SnippetTestCase.copySources(f, "src/main/eo");
final Path runtime = Paths.get(System.getProperty("user.dir"))
.resolve("src/main/eo");
final Collection<Path> sources = Files.walk(runtime)
Expand Down Expand Up @@ -142,8 +142,8 @@ void runsAllSnippets(final String yml, final @TempDir Path temp) throws IOExcept
void runsTestsAfterPhiAndUnphi(final @TempDir Path temp) throws IOException {
new Farea(temp).together(
f -> {
SnippetCaseTest.copySources(f, "src/main");
SnippetCaseTest.copySources(f, "src/test/eo");
SnippetTestCase.copySources(f, "src/main");
SnippetTestCase.copySources(f, "src/test/eo");
f.properties()
.set("project.build.sourceEncoding", "UTF-8")
.set("project.reporting.outputEncoding", "UTF-8");
Expand Down Expand Up @@ -271,7 +271,7 @@ void runsTestsAfterPhiAndUnphi(final @TempDir Path temp) throws IOException {
* dependencies to rust-tests after phi->unphi (see:
* <a href="https://github.com/objectionary/eo/issues/3145">this</a> for details).
* When it's resolved we need to remove the filter and make sure the snippet test
* {@link SnippetCaseTest#runsTestsAfterPhiAndUnphi(Path)} still works.
* {@link SnippetTestCase#runsTestsAfterPhiAndUnphi(Path)} still works.
*/
private static void copySources(final Farea farea, final String target) throws IOException {
final Path runtime = Paths.get(System.getProperty("user.dir"))
Expand Down

0 comments on commit 5ac212c

Please sign in to comment.