Tests / @ogygia/cli
@ogygia/cli
Version 0.13.1
4b18f465 43 test runs (43 tests, each run in Node, the browsers or both)
0.32× lines of test for each line of source (1,290 to 3,980) 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)39.8% of source lines run by the tests
- 43Unit
- 0Browser
- 0End to end
- 0Type tests
- 0Lint rules
- 0Failing
Coverage
- 39.8%Lines
- 40.1%Branches
- 45.7%Functions
- 40.4%Statements
Every test
End-to-end suites are not part of this report yet.
43 tests
| Test | Kind | Node | Chromium | Firefox | WebKit |
|---|---|---|---|---|---|
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-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/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 > 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 markdown comment and the terminal summary carry the verdict | 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 |