Skip to main content

Search

Items tagged with: testing


Just updated the Kitten reference section on testing Kitten to include instructions on running the new regression and end-to-end tests.

Will only be of interest if you’re hacking on Kitten itself.

kitten.small-web.org/reference…

#Kitten #SmallWeb #web #dev #NodeJS #testing #playwright


Really enjoying adding end-to-end tests to Kitten¹ using Playwright² and my own little Kitten controller class for starting/stopping/otherwise interacting with the Kitten server.

Just wrote some that comprehensively test identity creation and authentication for Small Web places:

codeberg.org/kitten/app/src/br…

Lots more to write but I think I’ve found a good flow :)

:kitten:💕

¹ kitten.small-web.org
² playwright.dev

#Kitten #SmallWeb #Playwright #testing #NodeJS #JavaScript #web #dev


PS. This is the Browser helper:

codeberg.org/kitten/app/src/br…

And this is the Kitten process helper:

codeberg.org/kitten/app/src/br…

The only thing I’ll eventually need to add is a WebSocket helper so I can mock Kitten’s htmx¹/Streaming HTML² requests and that should give me pretty good coverage without having to resort to orchestrating actual browsers.

(Also, the unit tests are in quite a dismal state so there’s lots to do.)

¹ kitten.small-web.org/tutorials…
² kitten.small-web.org/tutorials…

#Kitten #htmx #testing