Kitten

Technical Manual sections

Kitten’s tests are in tests/, and the npm scripts in package.json run them. These are the suites:

The Kitten helper (tests/helpers/Kitten.ts) runs the kitten command on your path in a subprocess, on a free port unless you pass one. It waits for the server to report that it is listening, and stops its whole process tree. A server on a free port deletes its data folder when it stops. tests/helpers/global-setup.ts runs before the regression and end-to-end suites. It installs the dependencies of the examples that have them, and starts a throwaway server so the localhost certificate authority exists before parallel workers start.

These scripts run the suites:

(Use npm run -s to silence npm’s own output.)

These scripts run other checks:

The regression and end-to-end suites test the installed Kitten, not the source, so run ./install first. (The test scripts whose names don’t contain without-install, e.g., npm test, do this for you.)

Note that installing restarts the Kitten servers that are running in development (see Kitten Process Manager), including the servers of a test suite that is running.

Source code:

Like this? Fund us!

Small Technology Foundation is a tiny, independent not-for-profit.

We exist in part thanks to patronage by people like you. If you share our vision and want to support our work, please become a patron or donate to us today and help us continue to exist.