Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ext/node): suppress node compat tests stdout by default #17909

Merged
merged 2 commits into from
Feb 27, 2023

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Feb 24, 2023

This PR suppresses the stdout of Node.js compat test cases when they are executed without any filter. (The console output of node.js compat testing is large and they are not useful when running the entire test cases.)

The stdout is still displayed when the developer specifies any test case filter.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -78,7 +79,7 @@ for await (const path of testPaths) {
});
const { code, stdout, stderr } = await command.output();

if (stdout.length) console.log(decoder.decode(stdout));
if (stdout.length && hasFilters) console.log(decoder.decode(stdout));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you make it display the output if code is non-zero?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Updated!

Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kt3k kt3k merged commit 92ba46c into denoland:main Feb 27, 2023
@kt3k kt3k deleted the suppress-compat-stdout-by-default branch February 27, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants