Skip to content

Commit

Permalink
feat(#3283): print info in snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
maxonfjvipon committed Jul 26, 2024
1 parent dc8253c commit d3e1cb6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions eo-runtime/src/test/java/org/eolang/SnippetTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
import org.eolang.jucs.ClasspathSource;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Tag;
import org.junit.jupiter.api.Test;
Expand Down Expand Up @@ -254,11 +255,13 @@ void runsTestsAfterPhiAndUnphi(final @TempDir Path temp) throws IOException {
.set("placeBinariesThatHaveSources", SnippetTestCase.TRUE);
f.exec("clean", "test");
final String log = f.log();
Logger.debug(this, log);
MatcherAssert.assertThat(
"Some tests weren't passed after converting to phi and back",
log,
Matchers.containsString("BUILD SUCCESS")
final boolean success = log.contains("BUILD SUCCESS");
if (!success) {
Logger.info(this, log);
}
Assertions.assertTrue(
success,
"Some tests weren't passed after converting to phi and back"
);
}
);
Expand Down

0 comments on commit d3e1cb6

Please sign in to comment.