-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
deno test: Consider adding "tap" format #14390
Comments
CC @brianleroux you might be interested in this one? |
def! we make heavy use of TAP |
Hi @bartlomieju, I'd be interested in contributing with a However, as I was reading the code, I couldn't find the I did try to look around the entirety of the code for where this reporter could be specified but I could only find the I've only recently started writing Also, as someone who's core-maintained |
Hi @lucasfcosta, thanks for picking interest in this topic!
Yeah, my mistake, we don't have JSON reporter for
Great, I'd love to hear your feedback on the topic. |
Scratch that, got confused. This needs to be implemented in Rust. |
We could use |
This PR adds a test reporter for the [Test Anything Protocol](https://testanything.org). It makes the following implementation decisions: - No TODO pragma, as there is no such marker in `Deno.test` - SKIP pragma for `ignore`d tests - Test steps are treated as TAP14 subtests - Support for this in consumers seems spotty - Some consumers will incorrectly interpret these markers, resulting in unexpected output - Considering the lack of support, and to avoid implementation complexity, subtests are at most one level deep (all test steps are in the same subtest) - To accommodate consumers that use comments to indicate test-suites (unspecced) - The test module path is output as a comment - This is disabled for `--parallel` testing - Failure diagnostics are output as JSON, which is also valid YAML - The structure is not specified, so the format roughly follows the spec example: ``` --- message: "Failed with error 'hostname peebles.example.com not found'" severity: fail found: hostname: 'peebles.example.com' address: ~ wanted: hostname: 'peebles.example.com' address: '85.193.201.85' at: file: test/dns-resolve.c line: 142 ... ```
Closed by #20073. |
❤️ nice! |
Currently
deno test
has only default and json format available. Tap is a very popular format (especially in Node world) that would allow users to pipe the output into different reporters of their liking.We should research what it would entail to implement it.
The text was updated successfully, but these errors were encountered: