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.
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.small-web.org
² playwright.dev
#Kitten #SmallWeb #Playwright #testing #NodeJS #JavaScript #web #dev
app/tests/end-to-end/examples.spec.js at regression-tests
app - A web development kit that’s small, purrs, and loves you.Codeberg.org
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…
app/tests/helpers/Browser.js at regression-tests
app - A web development kit that’s small, purrs, and loves you.Codeberg.org