Skip to content

Commit

Permalink
chore: improve test debug observability
Browse files Browse the repository at this point in the history
  • Loading branch information
clementdessoude committed Jan 8, 2025
1 parent 13086e1 commit 34a0422
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/prettier-plugin-java/test/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,10 @@ export function testRepositorySample(
maxBuffer: Infinity
});
if (code.status !== 0) {
console.log("error", code.error);
console.log("stderr", code.stderr);
(code.output ?? []).forEach(out => console.log("output", out));

expect.fail(
`Cannot build ${testFolder}, please check the output below:\n${code.error ?? code.stderr}`
);
Expand Down

0 comments on commit 34a0422

Please sign in to comment.