-
Notifications
You must be signed in to change notification settings - Fork 18
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
test-run always reports a single test status for a test with TAP13 output #386
Comments
Lines 126 to 136 in affa13f
(The help message says 'to log', but actually the output goes to the terminal.) When something fails we should show the test output automatically (even without |
Sure, I know about Imagine you run tests on CI, one of the luatest testcase is failed under test-run. You need carefully look at the log to understand what testcase has failed. It takes additional time. Attached file (OcWgbW.txt) contains a real log of running a suite with luatest's tests under test-run.py. Test |
The test-run/lib/luatest_server.py Lines 37 to 38 in c5fa909
AFAIU, it would be convenient for you to get less output as However,
There is another option and I guess it is what you proposed initially. Add a summary about test cases if one is failed (we anyway parse it from all the output). I like this idea. |
This issue is about printing testcases of TAP and luatest's tests. Not about summary or anything else. Currently, test-run is a just a frontend above real tests, and it should not hide useful information from tests that it runs. |
I asked Sergey to clarify the issue and now there is the 'by examples' section that makes it more clear. It is actually not about failed tests, but rather about all tests that produce TAP13 output (some unit, some app and all luatest tests). Sergey also added more context about his user scenario. The problem is about waiting for information from a long running test, when it is run alone. There is no way to understand what is going on until the test passed or until a timeout is reached. He also tells about his idea to show verbose information about failed test case, not about all test cases in given test. (Please, correct me if I wrench some of your ideas. I re-read our chat log five times before sending this clarification and I hope I made it as accurate as possible.) My opinion is under the line. The discussion is about a proper balance between verbosity and conciseness. Testing frameworks usually target large test suites and give minimalistic information about running tests while everything is going OK. Examples of defaults:
test-run primarily aims tarantool's test suite, which has ~1200 test runs (each is usually a fraction of a second), and it prints a test per line while everything is OK. It looks reasonable. This default shouldn't be changed in my opinion. However, aside of the primary goal of a testing framework, there are a couple of secondary goals:
That's why fancy failure reports exist, why output verbosity options like There are areas for improvements for test-run in these regards. However, as far as I understood, a discussion is not welcomed here. So, I'm done. |
imagine we have a test with TAP13 output:
test-run reports only a single test status, even we have a number testcases in a test:
It would be convenient to report all testcases in test-run output. Especially it would be useful when all TAP13 testcases are passed and some are not, a detailed report will give an overview of the status of testing.
By examples
How output looks now when test is passed
How output looks now when test is failed
How, I suppose, output should look like
The text was updated successfully, but these errors were encountered: