go-ssb-room icon indicating copy to clipboard operation
go-ssb-room copied to clipboard

Invite follow-up: end-to-end integration tests

Open cryptix opened this issue 3 years ago • 0 comments

All the important parts have unit tests.

  • HTML Forms are checked to have the fields
  • HTTP POST endpoints are checked
  • sqlite crud interface is tested, including .Consume() adding to the allow list

... butt I would prefer to also start testing the whole thing in one piece, including the muxrpc stuff. Didn't want to whip all this up on the back of #59, tho.

Qs to answer:

  • with or without https?
  • Do we run it as a _test or whip up scripts to run cmd/server as an executable?
  • what's does the client test driver look like?

Also the current way to spawn the web + muxrpc stuff is only in cmd/server so a proper e2e suite either needs to run that or refactor the server code to become a slim CLI flag passing shim.

cryptix avatar Mar 10 '21 09:03 cryptix