test.bzl并使用:java -jar Starlark_deploy.jar test.bzl执行它。Make sure the 'load' statement appears in the global scope in your file
我的最终目标是拥有我自己的Starlark引擎,这取决于Starlark_deploy.jar然后,我将利用Bazel规则的存在(如htt_archi
我正在根据https://docs.bazel.build/versions/master/skylark/testing.html为我的项目编写分析时间测试,我想知道报告失败的最有用的方法是什么。 在使用unittest.bzl模块时,我使用了asserts.equals、asserts.true等工具,我发现日志中的错误报告有些缺失。例如,如果asserts.true失败,则错误消息为Expected condition to be true, but was false,没有提到哪一行,也没有提到它预期为真的条件。在一个包含大量测试的文件中,这并不是很有用!我知道可以将消息作为参数添加