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

[Feature Request] moon test runner pipe stdout and stderr #521

Open
1 task done
yjl9903 opened this issue Dec 9, 2024 · 1 comment
Open
1 task done

[Feature Request] moon test runner pipe stdout and stderr #521

yjl9903 opened this issue Dec 9, 2024 · 1 comment

Comments

@yjl9903
Copy link
Contributor

yjl9903 commented Dec 9, 2024

Feature Request

Summary

Pipe testcase stdout / stderr to tty for moon test command.

Motivation

Currently, moon test command will run the testcase and get stdout / stderr after testcase exiting.

However, if I wrote some non-terminating code, I cannot use the moon test runner and logs to debug my code, for that test runner won't terminate and logs are unavailable.

So, I think moon test command should pipe stdout / stderr to tty, and we can debug code using logs.

Detailed Description

Related Issues

Checklist

  • I have added all necessary details to make it easy for the maintainers to understand my request.
@yjl9903 yjl9903 changed the title feat: moon test command should pipe stdout and stderr [Feature Request] moon test command pipe stdout and stderr Dec 9, 2024
@yjl9903 yjl9903 changed the title [Feature Request] moon test command pipe stdout and stderr [Feature Request] moon test runner pipe stdout and stderr Dec 9, 2024
@Young-Flash
Copy link
Collaborator

the stdout of testcase is like the following

test output 1
----- BEGIN MOON TEST RESULT -----
{"package": "username/hello/lib", "filename": "hello_test.mbt", "index": "0", "test_name": "0", "message": ""}
----- END MOON TEST RESULT -----
test output 2
----- BEGIN MOON TEST RESULT -----
{"package": "username/hello/lib", "filename": "hello_test.mbt", "index": "1", "test_name": "1", "message": ""}
----- END MOON TEST RESULT -----

maybe we should streaming parse it

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

No branches or pull requests

2 participants