Skip to content

Commit 804ef27

Browse files
fix: update build script to not run doc tests (#241)
1 parent fccd8e0 commit 804ef27

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

build-scripts/const.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
CLI_PACKAGE_NAME = "q_cli"
2323
PTY_PACKAGE_NAME = "figterm"
2424
DESKTOP_PACKAGE_NAME = "fig_desktop"
25+
DESKTOP_FUZZ_PACKAGE_NAME = "fig_desktop-fuzz"
2526

2627
DESKTOP_PACKAGE_PATH = pathlib.Path("crates", "fig_desktop")
2728

build-scripts/test.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from typing import List, Mapping, Sequence
44
from rust import cargo_cmd_name, rust_env
55
from util import isLinux, run_cmd, get_variants, Variant
6-
from const import DESKTOP_PACKAGE_NAME
6+
from const import DESKTOP_FUZZ_PACKAGE_NAME, DESKTOP_PACKAGE_NAME
77

88

99
def run_clippy(
@@ -53,7 +53,7 @@ def run_cargo_tests(
5353
args.extend(["--target", target])
5454

5555
if Variant.FULL not in variants:
56-
args.extend(["--exclude", DESKTOP_PACKAGE_NAME])
56+
args.extend(["--exclude", DESKTOP_PACKAGE_NAME, "--exclude", DESKTOP_FUZZ_PACKAGE_NAME])
5757

5858
if features:
5959
args.extend(
@@ -73,14 +73,15 @@ def run_cargo_tests(
7373

7474
args = [cargo_cmd_name()]
7575

76-
args.extend(["test", "--locked", "--workspace"])
76+
# Run all lib, bin, and integration tests. Required to exclude running doc tests.
77+
args.extend(["test", "--locked", "--workspace", "--lib", "--bins", "--test", "*"])
7778

7879
if target:
7980
args.extend(["--target", target])
8081

8182
# disable desktop tests for now
8283
if isLinux():
83-
args.extend(["--exclude", DESKTOP_PACKAGE_NAME])
84+
args.extend(["--exclude", DESKTOP_PACKAGE_NAME, "--exclude", DESKTOP_FUZZ_PACKAGE_NAME])
8485

8586
if features:
8687
args.extend(

0 commit comments

Comments
 (0)