57

We are in a very funny situation where I just spent two weeks fixing FE bugs and there are so many left. I asked to add integration tests but the answer was “no”, cause we can’t test the UI and all of that.

So the proposed solution was to be more careful, except I’m careful but testing whole website parts or the whole website is not feasible. What can I do?

you are viewing a single comment's thread
view the rest of the comments
[-] Blamemeta@lemm.ee 5 points 11 months ago

Don't. You really can't for most of it. At best, you can test whatever utility functions you have. The FE can and will break more in design than anything else, and that will never get caught by tests.

That said, try a wholistic approach. Playwright requires you to run the back end too, so you get a proper test suite going, instead of jest or whatever.

[-] nitefox@sh.itjust.works 1 points 11 months ago

Yeah I don't think unit testing would be useful. I don't think though that integration tests etc are useless though, more so now that it is possible to test the UI states too. I didn't know playwright to be fair, I read it "automatically" generates tests? Maybe I did misunderstand

[-] timdrake@lemmy.world 2 points 11 months ago

There's a VS Code extension that records the steps you took and creates the test for you. But more often than not, you would have to make some changes too.

load more comments (1 replies)
load more comments (1 replies)
this post was submitted on 05 Dec 2023
57 points (100.0% liked)

Programming

17342 readers
271 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS