Tests / @ogygia/tooling

@ogygia/tooling

Version 0.14.0 latest
commit 620ddcca
48 test runs (48 tests, each run in Node, the browsers or both)
0.36× lines of test for each line of source (720 to 1,978) 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)
28.2% of source lines run by the tests
  • 48Unit
  • 0Browser
  • 0End to end
  • 0Type tests
  • 0Lint rules
  • 0Failing

Coverage

  • 28.2%Lines
  • 24.1%Branches
  • 24.4%Functions
  • 27.1%Statements

Every test

48 tests

TestKindNodeChromiumFirefoxWebKit
packages/tooling/test/e2e-browsers.test.ts
console_text > falls back to Playwright's text when the message has no argumentsUnitpassnot runnot runnot run
console_text > joins each argument's own text, an Error as its name and messageUnitpassnot runnot runnot run
console_text > reads an argument of a page that left as empty text, without throwingUnitpassnot runnot runnot run
page_errors > keeps that line in Chromium and FirefoxUnitpassnot runnot runnot run
page_errors > leaves out WebKit's line for a fetch that failed at the network, read from the stack's first lineUnitpassnot runnot runnot run
packages/tooling/test/e2e-build.test.ts
e2e build > a build that fails throws, naming the appUnitpassnot runnot runnot run
e2e build > as a globalSetup it builds the app in metadata.buildUnitpassnot runnot runnot run
e2e build > E2E_NO_BUILD=1 reuses the existing build: nothing is builtUnitpassnot runnot runnot run
e2e build > run as a command it builds the app in the current directoryUnitpassnot runnot runnot run
e2e build > the build carries ogygia's rules (OGYGIA_RULES=1), so every test's rules check checks (#1272)#1272Unitpassnot runnot runnot run
e2e build > the e2e task builds the app's libraries first, so the build step builds only the appUnitpassnot runnot runnot run
packages/tooling/test/e2e-check.test.ts
a page where ogygia booted without its rules fails the rules check, naming why (#1272)#1272Unitpassnot runnot runnot run
check(): every check runs, each failure is named with its extra, the test fails once at the endUnitpassnot runnot runnot run
the siblings import by file name, `.ts` and all, from @ogygia/tooling/e2e/*Unitpassnot runnot runnot run
packages/tooling/test/e2e-config.test.ts
suite > a served app is built and previewed in one command chain, never an earlier serverUnitpassnot runnot runnot run
suite > a suite with no server builds its app in a globalSetupUnitpassnot runnot runnot run
suite > E2E_PORT_OFFSET moves the served portUnitpassnot runnot runnot run
suite > E2E_SHARD picks a share of the spec files (an env var, not a CLI flag); a bad one throwsUnitpassnot runnot runnot run
suite > each lane of one suite writes its own output folderUnitpassnot runnot runnot run
suite > every spec runs in each engine: one project per browserUnitpassnot runnot runnot run
suite > specs run one at a time: the fixture app keeps state they shareUnitpassnot runnot runnot run
suite > the fixture apps under e2e/ are not read for specsUnitpassnot runnot runnot run
packages/tooling/test/package-boundaries.test.ts
package boundaries > finds the plugin packages it guards againstUnitpassnot runnot runnot run
package boundaries > neither ogygia, core nor the compiler imports a plugin packageUnitpassnot runnot runnot run
package boundaries > neither ogygia, core nor the compiler lists a plugin packageUnitpassnot runnot runnot run
package boundaries > ogygia depends on @ogygia/core and @ogygia/compiler onlyUnitpassnot runnot runnot run
packages/tooling/test/re.test.ts
the shared e2e regexes > every export is a regex, global exactly when its name ends in _G_REUnitpassnot runnot runnot run
packages/tooling/test/server-log.test.ts
the server log > a test reads what was appended after it startedUnitpassnot runnot runnot run
the server log > outside a suite there is no log, and appending is nothingUnitpassnot runnot runnot run
the server log > reads each rule a server said, with its detail decoded, onceUnitpassnot runnot runnot run
packages/tooling/test/servers.test.ts
spawn_server > a port someone else keeps holding fails the spawn, naming the portUnitpassnot runnot runnot run
spawn_server > a server that ignores SIGTERM is killed after the grace timeUnitpassnot runnot runnot run
spawn_server > kill() resolves once the server is gone: the port is free right afterUnitpassnot runnot runnot run
packages/tooling/test/sim-replay.node.test.ts
an eager press, at the moment of the load the simulator pressed at > at once, in a plan with nothing seenUnitpassnot runnot runnot run
an eager press, at the moment of the load the simulator pressed at > at once, when the press woke an island in the simulatorUnitpassnot runnot runnot run
an eager press, at the moment of the load the simulator pressed at > at once, when the simulator pressed while it waitedUnitpassnot runnot runnot run
an eager press, at the moment of the load the simulator pressed at > at rest, when the simulator pressed once its critical wait settled and its islands wokeUnitpassnot runnot runnot run
layout shift and long tasks, judged > fails a document whose regions' shifts add up to the limit, and notes a smaller oneUnitpassnot runnot runnot run
layout shift and long tasks, judged > fails a long task in ogygia's code onlyUnitpassnot runnot runnot run
the real-browser tier plays a plan on its own app > plays a generated app plan only on the app its seed wroteUnitpassnot runnot runnot run
the real-browser tier plays a plan on its own app > plays a plan of a hand-written app on that app, from any checkoutUnitpassnot runnot runnot run
the real-browser tier plays a plan on its own app > skips a generated app that drew a peerUnitpassnot runnot runnot run
the real-browser tier plays a plan on its own app > skips a plan of another appUnitpassnot runnot runnot run
packages/tooling/test/trace.test.ts
moves(page) > is null for a page that keeps none, or one that closedUnitpassnot runnot runnot run
moves(page) > reads the page's movesUnitpassnot runnot runnot run
trace_on_failure > prints nothing for a test that passesUnitpassnot runnot runnot run
trace_on_failure > prints the test's machine moves when it fails, even after its teardown stopped themUnitpassnot runnot runnot run
trace_on_failure > says so when no machine movedUnitpassnot runnot runnot run