go - 在使用 go 模块的 GOPATH 之外的项目中运行 godog 时出现错误“无法编译 testmain 包”
问题描述
使用 godog 我能够成功运行功能文件。现在,当我使用“go mod init mytest.com/automation”创建模块时;并尝试使用 godog 运行功能文件得到以下错误:
无法编译 testmain 包:退出状态 2 - 输出:C:\Users\\AppData\Local\Temp\go-build685806736\b001_testmain.go:5:2:找不到导入:“mytest.com/automation/C_ /Users//sample_automation_golang/src/features"
我看到过去报告过类似的问题,但现在标记为已解决:https ://github.com/DATA-DOG/godog/issues/136
有人可以帮助解决这个错误吗?
解决方案
推荐阅读
- python - Pandas 有没有办法将 .rename() 应用于数据帧的过滤子集?
- c# - 流实现 - 覆盖 Dispose 或 DisposeAsync 或两者?
- c# - 如何在 SelectionChanged 上运行昂贵的进程,但在快速滚动时却不行。(延迟事件处理程序)?
- mapbox-gl-js - 从deckl地图导出png
- android - 如何修复 PJSIP Android Xamarin.Forms (Endpoint_libCreate) 中的崩溃
- r - 如何访问 R 数据框中的单个项目?
- javascript - Python / Bokeh / Javascript / js_on_change 用于堆叠条和下拉列表选择
- python - 如何让 John 的 econ id 被退回?
- javascript - 如何在 Jmeter 中使用 TCP 采样器
- python - 是否可以用“移动相机”确定“移动物体”的运动/速度?