Tests / @ogygia/cli
@ogygia/cli
Version 0.14.0 latest
620ddcca 57 test runs (57 tests, each run in Node, the browsers or both)
0.43× lines of test for each line of source (1,734 to 4,066) Only real test code counts: test files and their helpers, not fixtures, sample apps or benches.
Blank lines are left out on both sides.
Exactly what is counted
non-blank lines of test code across the repo (*.test.ts, *.test-d.ts, *.spec.ts, and the .ts helpers in test/ and e2e/ folders; no fixtures, fixture apps, stubs or benches), over non-blank lines of packages/*/src (no .d.ts or generated files)51.7% of source lines run by the tests
- 57Unit
- 0Browser
- 0End to end
- 0Type tests
- 0Lint rules
- 0Failing
Coverage
- 51.7%Lines
- 47.2%Branches
- 58.3%Functions
- 52.2%Statements
Every test
57 tests
| Test | Kind | Node | Chromium | Firefox | WebKit |
|---|---|---|---|---|---|
packages/cli/test/mcp-debug-story.test.ts | |||||
| ogygia_debug: a failed hydration shows its reason in the region block and the warnings | Unit | pass | not run | not run | not run |
| ogygia_debug: a region seen only by its failure is named by that event’s entry | Unit | pass | not run | not run | not run |
| ogygia_debug: each applied hole has its own block, keyed by its endpoint (#1820)#1820 | Unit | pass | not run | not run | not run |
| ogygia_debug: the story header lists the features the runtime booted (#1813)#1813 | Unit | pass | not run | not run | not run |
packages/cli/test/mcp-every-request.test.ts | |||||
| the MCP server over stdio > answers every request exactly once, whatever its method and params | Unit | pass | not run | not run | not run |
packages/cli/test/mcp-flags-trust.test.ts | |||||
| the flags tool pointed at another directory runs none of that directory's code | Unit | pass | not run | not run | not run |
packages/cli/test/mcp-profile-busy.test.ts | |||||
| ogygia_profile while another recording holds the profiler > clears a stale holder with a reset, and records once more | Unit | pass | not run | not run | not run |
| ogygia_profile while another recording holds the profiler > leaves a live window alone and says the profiler is busy | Unit | pass | not run | not run | not run |
packages/cli/test/mcp-profile-digest.test.ts | |||||
| ogygia_profile digest > a helper site is moot only when EVERY line that called it is in work that goes away | Unit | pass | not run | not run | not run |
| ogygia_profile digest > an older report with no patterns or ledger renders as before | Unit | pass | not run | not run | not run |
| ogygia_profile digest > every section is one render’s worth, like the render time next to it | Unit | pass | not run | not run | not run |
| ogygia_profile digest > leads with the patterns and the exact lines, code included | Unit | pass | not run | not run | not run |
| ogygia_profile digest > names the page's fixes that other profiled pages share, with what each gives back there | Unit | pass | not run | not run | not run |
| ogygia_profile digest > opens with one ordered plan: patterns and work for nothing, by ms per render, each with the line to edit | Unit | pass | not run | not run | not run |
| ogygia_profile digest > says what changed since the last profile of the page, first | Unit | pass | not run | not run | not run |
| ogygia_profile digest > the plan opens with the report's forecast: code fixes, what keeping answers adds, overlaps named | Unit | pass | not run | not run | not run |
| ogygia_profile digest > with a forecast: the plan follows its order, folds covered fixes in, and says the render after each step | Unit | pass | not run | not run | not run |
packages/cli/test/mcp-profile-html-error.test.ts | |||||
| quotes an HTML error page by its words only | Unit | pass | not run | not run | not run |
packages/cli/test/mcp-profile-locked.test.ts | |||||
| ogygia_profile on a locked profiler > says the key was rejected when a wrong key is given | Unit | pass | not run | not run | not run |
| ogygia_profile on a locked profiler > says the profiler is locked and asks for its secret when no key is given | Unit | pass | not run | not run | not run |
packages/cli/test/mcp-report-load.test.ts | |||||
| a failed load of the report reading is tried again once the plugin is installed | Unit | pass | not run | not run | not run |
packages/cli/test/mcp-scan.test.ts | |||||
| ogygia_scan: a file Svelte cannot parse is left out, and the other files are still scanned | Unit | pass | not run | not run | not run |
packages/cli/test/messages.test.ts | |||||
| cli messages > a CLI message prints its wording, then its page, in a production build too | Unit | pass | not run | not run | not run |
packages/cli/test/perf.test.ts | |||||
| bisect > a range with no regression names no culprit; a measure that throws counts as a skip | Unit | pass | not run | not run | not run |
| bisect > finds the first bad commit in log2 steps, tolerating noise under the bar | Unit | pass | not run | not run | not run |
| bisect > skips a commit that cannot be built and still lands on the culprit | Unit | pass | not run | not run | not run |
| measure > drives the profiler over HTTP with the key, one page at a time, and explains failures | Unit | pass | not run | not run | not run |
| measure > folds a report into a page snapshot: medians, bytes, unique island JS, top rows, warnings | Unit | pass | not run | not run | not run |
| number flags > `--margin 0` is a margin of 0, not the default | Unit | pass | not run | not run | not run |
| number flags > absent, empty or not a number → the default | Unit | pass | not run | not run | not run |
| verdict > a new page is judged by caps only; a page the run did not measure is listed; a named finding fails | Unit | pass | not run | not run | not run |
| verdict > a page's override beats the top level, and the top level beats the defaults | Unit | pass | not run | not run | not run |
| verdict > movers: a component whose self time grew past its own budget fails; functions and paths are listed | Unit | pass | not run | not run | not run |
| verdict > relative growth over the floor fails; small growth on a tiny page does not; caps are absolute | Unit | pass | not run | not run | not run |
| verdict > the comment leads with the outcome, then the table, then three movers with their file, then the findings | Unit | pass | not run | not run | not run |
| verdict > the markdown comment and the terminal summary carry the verdict | Unit | pass | not run | not run | not run |
packages/cli/test/property-mcp-tools.test.ts | |||||
| MCP tools over any JSON arguments > answer with a text result and never reject | Unit | pass | not run | not run | not run |
packages/cli/test/serve.test.ts | |||||
| bisect server > a port someone else holds is refused, naming the port | Unit | pass | not run | not run | not run |
| bisect server > a server that exits at once fails at once, with its output | Unit | pass | not run | not run | not run |
| bisect server > a server that ignores SIGTERM is killed after the grace time | Unit | pass | not run | not run | not run |
| bisect server > stop resolves once the server is gone: the port is free right after | Unit | pass | not run | not run | not run |
| bisect server > stop then serve again on the same port: the answer is the new server, never the old one | Unit | pass | not run | not run | not run |
| bisect server > stop waits for the server behind a wrapper that exits at once | Unit | pass | not run | not run | not run |
packages/cli/test/site-cli.test.ts | |||||
| site init — --layout > mounts under a nested layout dir with the right base | Unit | pass | not run | not run | not run |
| site init — --layout > rejects a --layout outside src/routes | Unit | pass | not run | not run | not run |
| site init — --layout > rejects a --layout that is not a +layout.svelte | Unit | pass | not run | not run | not run |
| site init — existing layout > never clobbers an existing layout without --force (and says why) | Unit | pass | not run | not run | not run |
| site init — existing layout > overwrites the layout with --force | Unit | pass | not run | not run | not run |
| site init — existing layout > recognises an existing ogygia shell as redeemable and keeps it (no --force needed) | Unit | pass | not run | not run | not run |
| site init — guards > errors when not a SvelteKit project | Unit | pass | not run | not run | not run |
| site init — guards > errors when there is no vite config | Unit | pass | not run | not run | not run |
| site init — guards > prints usage for `site` with no subcommand | Unit | pass | not run | not run | not run |
| site init — re-runs > is idempotent: a second run keeps existing files | Unit | pass | not run | not run | not run |
| site init — re-runs > keeps the user’s own content instead of writing starter pages | Unit | pass | not run | not run | not run |
| site init — svelte.config project > every generated file that reads the site names it by what it imports | Unit | pass | not run | not run | not run |
| site init — svelte.config project > scaffolds the full site and wires configs correctly | Unit | pass | not run | not run | not run |
| site init — vite.config project > routes svelte options into the sveltekit() call | Unit | pass | not run | not run | not run |