-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Analyse Test Results? #8550
Comments
In the past we've discussed hooks for the test runner looking something like this: Deno.test("My test", () => {
assertEquals(true, true)
assertEquals(false, true)
});
Deno.setTestHook((testMessage) => {
if (testMessage.testStart != null) {
// ...
} else if (testMessage.testEnd != null) {
// ...
}
return testMessage;
}); But no good use case has arisen for custom test reporters which are enclosed in the same JS context as the tests. The best solution to the use case mentioned here is a |
I agree, seems like |
VS Code team are working on integrating a testing API and UI. They already have a prototype: microsoft/vscode#107467 |
Been playing around with a few iterations of bringing the test runner over to rust, which involves custom test reporters (e.g deno test --json). Coverage is next in my queue tho. |
Will probably close this issue then - is there an issue for the |
I guess this is it :D |
Ok cool thanks @caspervonb :) To reference what i mentioned. on discord, I think it'd be great if there was a way to get what files were tested. - maybe this could be part of |
Yeah would be an array containing filenames and arrays of test results, exposing the filename is a big part of why I want the rewrite. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions. |
Not stale; been experimenting and will do a proper run at this once I've wrapped my current PRs. |
I've been saying Ref https://en.wikipedia.org/wiki/JSON_streaming#Line-delimited_JSON, http://ndjson.org/. |
I tried to find it in the documentation, but could not see any reference to a json reporter. Did this ever get implemented, or what is the status for this issue? |
@halvardssm we don't have JSON reporter. You can use |
Description
This is a question.
Are there plans on added support for being able to 'analyse' tests results? For example:
Use Case
Note: of course this is my own use case, but this feature may provide more utility, and i'm not saying just because it would be useful to me, i expect it to be implemented
I have an idea for adding a GUI for a browser automation and testing tool (similar to Cypress.io), and i've been playing around with the idea of displaying test results for each test. I think the ability to analyse tests results would be sufficient in this scenario. The only current way i can think of doing this, is running the test inside a sub process, getting the stdout/stderr, and filtering the result so I can end up with the
- "..."\n+ "..."
blocksThe text was updated successfully, but these errors were encountered: