Skip to content

Commit

Permalink
Add cmd directory to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Eggbertx committed Jan 6, 2025
1 parent 175710b commit ea20cc4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,15 +425,13 @@ def sass(watch=False):
sys.exit(status)

def test(verbose=False, coverage=False):
pkgs = os.listdir("pkg")
for pkg in pkgs:
cmd = ["go", "test"]
if verbose:
cmd += ["-v"]
if coverage:
cmd += ["-cover"]
cmd += [path.join("./pkg", pkg)]
run_cmd(cmd, realtime=True, print_command=True)
cmd = ["go", "test"]
if verbose:
cmd += ["-v"]
if coverage:
cmd += ["-cover"]
cmd += ["./pkg/...", "./cmd/..."]
run_cmd(cmd, realtime=True, print_command=True)


if __name__ == "__main__":
Expand Down

0 comments on commit ea20cc4

Please sign in to comment.