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] Message after passing all tests #164

Open
estshorter opened this issue Sep 18, 2021 · 2 comments
Open

[Feature Request] Message after passing all tests #164

estshorter opened this issue Sep 18, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@estshorter
Copy link

Currently, cargo compete test exits without message if all tests pass.
but, it would be great if the command prints a message like "All test passed" to tell the results clearly.

@estshorter
Copy link
Author

estshorter commented Sep 19, 2021

Also, it would be great if the command prints the summary for each test after detailed output.
This is because it is hard to see the summaries when terminal height is small.

current:

$ cargo compete t practice-a 
1/2 ("sample1") Accepted (0 ms)
2/2 ("sample2") Accepted (0 ms)

1/2 ("sample1") Accepted (0 ms)
stdin:
1
2 3
test
expected:
6 test
actual:
6 test

2/2 ("sample2") Accepted (0 ms)
stdin:
72
128 256
myonmyon
expected:
456 myonmyon
actual:
456 myonmyon

preferable (I think):

$ cargo compete t practice-a 
1/2 ("sample1") Accepted (0 ms)
stdin:
1
2 3
test
expected:
6 test
actual:
6 test

2/2 ("sample2") Accepted (0 ms)
stdin:
72
128 256
myonmyon
expected:
456 myonmyon
actual:
456 myonmyon

1/2 ("sample1") Accepted (0 ms)
2/2 ("sample2") Accepted (0 ms)

@qryxip qryxip added the enhancement New feature or request label Sep 19, 2021
@estshorter
Copy link
Author

In addition, detailed information (stdin and expected result) for passed tests might be unnecessary, because we are usually interested in failed tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants