Generate jUnit XML file from Deno Tests
Hey is it possible that the Deno Test suite generates a jUnit XML about the Test? So that I can display the results on GitLab/GitHub?
7 Replies
I think it landed somewhat recently in deno behind the
--unstable
flag. See https://github.com/denoland/deno/pull/19747Nice. Does this already work?
And if so how can I use it?
Did you try the steps in the PR? It lists the following command
deno test -A --unstable --junit=./report.xml path/to/my_test.ts
Yea I tried that but it gives me an error saying that
--junit
is not a valid argument. I am also running the latest version of Deno
That looks like you have an emdash instead of two dashes in the argument.
No there are 2
--
it just looks diffrent. I have tried every possible combination.
It was written from mobile that's the reason why it looked that way.
But it still does not work xDThis has been added to Deno v1.36: https://deno.com/blog/v1.36#expanded-options-for-testing-and-benchmarking
Deno Blog
Deno 1.36: More flexible security and expanded testing APIs
Deno 1.36 introduces new runtime security options plus expanded testing and benchmarking APIs.