deno
deno copied to clipboard
[Feature Request] deno coverage --allow-none
I just tested the new deno version 1.39.1
and it would break some of our CI workflows. The root cause is https://github.com/denoland/deno/pull/21615
I maintain a CI template for several deno projects in my organization. Since the individual projects may include some tests or not, I wrote the test job like this:
deno test --coverage=cov --allow-none --allow-all
deno coverage --lcov cov > cov.lcov
Prior to 1.39.1
this would just create a 0 size cov.lcov
if the project does not have any tests. Now the CI job fails. I could certainly work around that by checking the existence of coverage data first (I'm probably going to do this as a temporary mitigation anyways), but I'd like to suggest the addition of a --allow-none
parameter just like what we have for deno test