Go: how to run tests for multiple packages?

后端 未结 4 1904
别那么骄傲
别那么骄傲 2020-12-31 07:33

I have multiple packages under a subdirectory under src/, running the tests for each package with go test is working fine.

When trying to run all tests

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 08:20

    apparently running go test -p 1 runs everything sequentially (including build), I haven't see this argument in go help test or go help testflag

提交回复
热议问题