AtlatestRepositorysigil-web-styles
1{
2 "module": "(sigil test cli)",
3 "package": "sigil-test",
4 "source": "/home/daviwil/Projects/Code/sigil/sigil-web-styles/.sigil/deps/sigil-test/src/sigil/test/cli.sgl",
5 "description": "(sigil test cli) - Reusable Test CLI Logic\n\nProvides argument parsing and test execution for both the `sigil test`\ncommand and standalone test harnesses. This module allows test harnesses\nto share the exact same behavior as `sigil test`.",
6 "exports": [
7 {
8 "name": "parse-test-args",
9 "kind": "procedure",
10 "description": "Parse test command arguments into an options alist.\n\nRecognizes the following flags:\n --native Run only native (C) tests\n --sgl Run only Sigil (.sgl) tests\n -f, --filter Run only tests matching PATTERN\n -c, --compact Compact output (dots instead of full names)\n -q, --quiet Minimal output (exit code only)\n --fail-fast Stop on first failure\n --no-color Disable colored output\n\nReturns: (options . remaining-args)\n options - alist of parsed options\n remaining-args - non-flag arguments (test files/directories)",
11 "line": 49
12 },
13 {
14 "name": "file-executable?",
15 "kind": "procedure",
16 "description": "Check if a file is executable",
17 "line": 104
18 },
19 {
20 "name": "discover-native-tests",
21 "kind": "procedure",
22 "description": "Discover native test executables in build directories.\nLooks for test-* executables in build/*/bin/",
23 "line": 111
24 },
25 {
26 "name": "expand-test-args",
27 "kind": "procedure",
28 "description": "Expand test arguments (files or directories) to test file paths.",
29 "line": 123
30 },
31 {
32 "name": "test-main",
33 "kind": "procedure",
34 "description": "Main entry point for running tests.\n\nThis function can be called from:\n - The `sigil test` CLI command\n - A standalone test harness binary\n\nArguments:\n args - command-line arguments (excluding program name)\n\nReturns: exit code (0 = success, 1 = failures)",
35 "line": 148
36 }
37 ]