Skip to content

Commit

Permalink
fix run_exe_unit_tests ref
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
chenrui333 authored and jinzhongjia committed Jan 14, 2024
1 parent 4e1bd95 commit 32c1c42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/engineering/build-system.md
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ pub fn build(b: *std.Build) void {
const run_exe_unit_tests = b.addRunArtifact(exe_unit_tests); // [!code focus]
// 如果想要跳过外部来自于其他包的单元测试(例如依赖中的包),可以使用 skip_foreign_checks // [!code focus]
run_unit_tests.skip_foreign_checks = true; // [!code focus]
run_exe_unit_tests.skip_foreign_checks = true; // [!code focus]
// 构建一个 step,用于执行测试 // [!code focus]
const test_step = b.step("test", "Run unit tests"); // [!code focus]
Expand Down

0 comments on commit 32c1c42

Please sign in to comment.