doumiang0597 2014-04-02 20:03
浏览 33
已采纳

如何在测试包中使用Godep

I have just started using godep for the first time. When I ran godep save, the Godeps.json file did not include testify which is a dependency for my unit tests.

go get -t would see testify, how do I tell godep to include my test dependencies?

  • 写回答

1条回答 默认 最新

  • dongtui4038 2014-04-04 15:50
    关注

    godep saves test dependencies automatically. In my case, the tests were in an inner package, so I only needed to run godep save ./... instead of godep save and testify was found as expected.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?