My package test cases are scattered across multiple files, if I run go test <package_name>
it runs all test cases in the package.
It is unnecessary to run all of them though. Is there a way to specify a file for go test
to run, so that it only runs test cases defined in the file?
转载于:https://stackoverflow.com/questions/16935965/how-to-run-test-cases-in-a-specified-file