`bazel test'可以调用`bazel run'吗?

发布于 2025-01-31 10:14:01 字数 422 浏览 1 评论 0原文

我正在为脚本编写一个集成测试,该脚本调用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文