gpt4 book ai didi

windows - 如何让 goconvey 在 Windows 7 上工作?

转载 作者:数据小太阳 更新时间:2023-10-29 03:28:42 25 4
gpt4 key购买 nike

我开始使用 golang 进行一些开发工作,我很乐意使用 goconvey 提供的 BDD 风格。

我刚刚将我的系统配置为为 golang 设置,我已经去 github.com/smartystreets/goconvey 一切顺利,但是当我在 goconvey 中编写一些简单的测试并尝试通过控制台执行它们时,我得到

$go test -v
go build github.com/smartystreets/assertions: no buildable Go source files in
FAIL go-tdd-take1 [build failed]

有什么技巧可以让它在 Windows 中运行吗?

我在代理后面工作,但我不确定这是否是这里的问题,我相信我已经配置好了。

谢谢

最佳答案

好的,我想我已经弄明白了。看起来好像当我安装 goconvey 时它没有下载 convey 目录中的断言所以一旦我 $go 得到 github.com/smartystreets/assertions然后将该目录复制到那里它应该已经消失了它似乎工作。

这仍然有点奇怪,我假设代理与它有关,我知道安装比在没有代理的 mac 上安装花费的时间更长。

关于windows - 如何让 goconvey 在 Windows 7 上工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28999669/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com