How to unit-test jq scripts? #3147
Unanswered
techhazard
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm writing several jq scripts, and I would like to add tests for those.
I have found the
--run-tests
argument that seems very useful, but it does not allow including other files (it assumes that's another test).Here's what I expect to work
Maybe the syntax for the
include
needs to be different in the test scripts, but I find the documentation of this testing setup to be very sparse in general.Or is there another way to properly add tests?
Beta Was this translation helpful? Give feedback.
All reactions