test2json with flag not defined
error
flag provided but not defined: -test.v\n
Solution
in your codebase, check that you are not using flag.Parse()
Reference
https://stackoverflow.com/questions/67414863/golang-test-fails-on-flags-parse-for-test-v