How to run test cases in a specified file?

前端 未结 7 1647
孤独总比滥情好
孤独总比滥情好 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:16

    in intelliJ IDEA go-lang plugin (and i assume in jetbrains Gogland) you can just set the test kind to file under run > edit configurations

提交回复
热议问题