How to run test cases in a specified file?

前端 未结 7 1601
孤独总比滥情好
孤独总比滥情好 2020-12-04 05:30

My package test cases are scattered across multiple files, if I run go test it runs all test cases in the package.

It is unnecessar

相关标签:
7条回答
  • 2020-12-04 06:31
    go test -v ./<package_name> -run Test
    

    Prevents caching of test results.

    go test -count=1 ./<package_name> -run Test
    
    0 讨论(0)
提交回复
热议问题