We have a special text file on an HTTP server that contains the filenames and test functions we want to skip when our golang tests run.
I must build something which downloads that test file, parses the file names and test functions that should be skipped, and then finally runs our go tests and properly skips the test functions found in the input file.
What's the right way to make this work in golang?
(I realize this sounds like an unusual way to skip, but we really want to make this work as I have described for reasons which are out of context to this question.)
TestMainfunction, then (2) write a function that callst.Skip()if the test should be skipped, and invoke that from eachTest*function. This function can get the current call stack to figure out whether the current test should be skipped.