`bazel test'可以调用`bazel run'吗?
我正在为脚本编写一个集成测试,该脚本调用bazel Run
(在源工作空间中产生文件)。理想情况下,可以通过bazel Test
来调用测试。
我知道Bazel Test
创建一个沙盒,并添加了“ //:workspace”
作为测试数据依赖关系。
我遇到了〜/.bazelrc
中设置的问题,这使我在测试中使用了bazel -nohome_rc Run
。但是现在,如果使用逐步更新的目录,我将获得工作空间文件不能成为符号链接。
是否可以拥有bazel test
call call bazel run
>?如果是这样,怎么样?
I'm writing an integration test for a script that calls bazel run
(which produces a file in the source workspace). Ideally, the test can be called via bazel test
.
I know bazel test
creates a sandbox and have added "//:WORKSPACE"
as a test data dependency.
And I was running into an issue with a setting in ~/.bazelrc
which led me to use bazel --nohome_rc run
in the test. But now I'm getting WORKSPACE file can not be a symlink if incrementally updated directories are used.
Is it possible to have bazel test
call bazel run
? If so, how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论