Menu

📰
0

Reddit - Please wait for verification

The Go Programming Language·/u/no_em_dash·4 days ago
#kuWwUyAd
Reading 0:00
15s threshold

I've worked on a lot of React SPAs with either Node or Go backends. For E2E testing I have mostly used Playwright or Jest + Puppeteer. I was looking into Playwright for Go but figured I'd ask if there are any other recommendations. The System Under Test (SUT) is a Go server + Postgres DB managed using `pgtestdb`. Some other dependencies are mocked, for example I have a development OIDC sever written using `zitadel/oidc` packages that I can use to test the login flow. --- A related question is: would you use a different tool if you were testing something other than a JavaScript framework + server? For example, if you use HTMX or Datastar and send HTML responses from the server instead of JSON. I don't think it would matter much form the browser's perspective because you need JavaScript either way for user interaction. You just need less with the "hypermedia" approach. submitted by /u/no_em_dash [link] [comments]

Read More