-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
Make output report customizable #629
Comments
Hm, to do this, all we need to do is remove it: Lines 100 to 109 in 7c852a5
|
To clarify more, output for a single file looks right. Very useful to see all the details. I try to point out that it becomes overwhelming in multi file runs. |
Do you think we could impose a limit to decide whether or not to display the successes? |
Hard to say how verbose a single file can be. So probably keep it verbose for a single file run and make it silent for a multi file run (this is how TSTyche works, by the way). Optionally, What you think? |
I don't know if a I think it would be more interesting:
Personally, I think option B is more attractive. |
This is your project and you see the context better. All I would like to see is less output in case a test file is all passing. |
A |
By the way, that would be good solution. |
Just an idea, the I was running tests today and thinking that information like “Running tests in parallel” or “Fail fast is enabled” are useful for debugging. Something like |
About For example: {
"test": "poku --reporter=dot"
} npm run test -- --quiet In addiction, I wondered how other test runners deal with multiple |
Jest loops through the list of reporters. A reporter must be an object with a set of callbacks like In Inspired by that, I adopted an event emitter for TSTyche. Not only reporters are handle through events, but also the exit code or |
Reporters' Ideas:
Important Both AssertBased on Deno's output, filter and highlight different lines when there is more than one line (regardless of whether it's a string, objects, etc.). |
The default reporter could be named |
In TSTyche repo I have 98 test files. If I run them locally in VS Code terminal, the output rendered by first test files cannot be reached any more. If there are any errors or failures, because the output is outside of scroll back buffer of the terminal.
The only way to see the output of a failing test, is to rerun a particular file.
Perhaps in a multi file run it would be better to emit only errors and file names. (Instead of printing out the whole test tree). Like this:
If a test file is passing, it isn’t important to see its structure. Keeping focus on errors and failures is most important.
(I would love to have dot reporter, of course. But that’s another story.)
The text was updated successfully, but these errors were encountered: