Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
/**
* Remove coordinates and add command numbers from failing test logs when auto is enabled.
* Apply ascii color codes to failure messages.
* Log passing tests when auto is enabled.
*/
@Mixin(LogTestReporter.class)
public class LogTestReporterMixin {
Expand All @@ -42,4 +43,11 @@ private void onTestFailed(GameTestInfo testInfo, CallbackInfo ci) {
ci.cancel();
}
}

@Inject(method = "onTestSuccess", at = @At(value = "HEAD"))
private void onTestSuccess(GameTestInfo testInfo, CallbackInfo ci) {
if (PackTest.isAutoEnabled()) {
LOGGER.info("{} passed on tick {}!", testInfo.id(), testInfo.getTick());
}
}
}
Loading