DenoDDeno
Powered by
MartinM
Denoβ€’3y agoβ€’
2 replies
Martin

deno tap metadata

Hello. I am running deno tests with
deno test --reporter=tap
deno test --reporter=tap
. I would like to add additional fields (medatata) to test output as YAML Diagnostic document. This would require some Deno test API for adding metadata:
Deno.test({ name: "some test", metadata: { foo: "bar" }, fn: () => {});
Deno.test({ name: "some test", metadata: { foo: "bar" }, fn: () => {});
or
Deno.test({ name: "some test", fn: (t) => { t.set("foo", "bar"); });
Deno.test({ name: "some test", fn: (t) => { t.set("foo", "bar"); });


this would produce

TAP version 14
# ./foo.test.ts
ok 1 - some test
  ---
  foo: bar
  ...
TAP version 14
# ./foo.test.ts
ok 1 - some test
  ---
  foo: bar
  ...


Is something like this planned? And can I now work it around somehow?
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

reflect-metadata on Deno Deploy not working?
ThomasTThomas / help
2y ago
DENO_FUTURE=1 / Deno 2 in deno subhosting
theswerdTtheswerd / help
2y ago
Deno KV on deno deploy
MolanMMolan / help
11mo ago