MartinM
Denoβ€’3y agoβ€’
2 replies
Martin

deno tap metadata

Hello. I am running deno tests with 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: () => {}); or 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 ...

Is something like this planned? And can I now work it around somehow?
Was this page helpful?