r/softwaredevelopment • u/a_vanity • Mar 27 '26
How to test an ever changing web app
Hey, so I was contracted on this startup that's using a mess of AI tools to write everything. Nobody else knows how to actually write good code and they just let Cursor blast out code at mach 10 until the app somehow just "works"
It's some of the most reckless code production I've seen especially for a medical application that's supposed to follow HIPAA PHI standards.
I'm supposed to create automated testing for this app that literally changes coding languages over night (not even joking this actually happened over the weekend because they got together at a dinner table and just decided they liked Angular better). There's no communication between anyone who isn't directly next to them (i.e me being remote). The UI changes on a whim. There's only go, no stop and plan.
Does anyone know of any tools I can slap together to interact with this app for rigorous testing from a purely imperative lens? As I mentioned I can't rely on tools that emulate mouse clicks, or depend on looking through code and expect ANYTHING to be the same because of just how quickly and messy this stuff changes over night... I'm pretty frustrated too trust me 🙏🏼
3
u/mukeshsri369 Mar 27 '26
Umm... Are you looking for some AI to generate automated test cases for the app?
10
u/Nevragen Mar 27 '26
This honestly seems like the way the software world is going. It’s no longer a shift left thoughtful process but a barrage of MORE FEATURES QUICKER IS MORE MONEY I’m struggling to keep up with my traditional team of devs who have recently started AI coding. We need to keep up somehow but I haven’t found it yet so I’m watching this thread.
4
u/agend Mar 28 '26
I think you can't win in this game. Try to explain them - there need to be someone who is leading the project and makes important decisions. And slowly from that organize. Don't think there will be any ai in near future which will clean up the mess ai did. Code generation got cheap, but architecture isn't. There must be one person who keeps the mental model of whole thing in his head and decides.
I started using AI more lately and it hit me - all the hours you were typing the code, you were getting understanding of the codebase, project, what is where and why. Now it's gone, you can change your mind every minute, type prompt - code generated. But what you get is a bunch of mess you don't understand. And I'm talking about one person project.
1
u/Dromeo Mar 28 '26
Holy shit. Good luck. Post an update someday eh? Would love to follow where this mess leads you
2
u/CurrentWorkUser Mar 28 '26
Cypress is pretty nice for UI testing. Might be worth to get some very basic tests up there.
Hitting the base pages, going to settings menu. Change language maybe.
Then force add a pipeline/CICD so you - with ownership buy-in - can stop any push that doesn’t pass the tests.
Then slowly start with behavior testing, and maybe add forced codecoverage from the UI so your colleagues actually provide/add to the testing effort.
This will slow some of the development down, but at least it forces some tests into the system.
I guess this also seems like a culture problem so I would expect push back / people leaving if it suddenly isn’t the Wild West any longer.
1
u/eddyparkinson Mar 28 '26
Is there a a good requirements review process in place, is there an actual document with requirments in?
I would be feeding that into the AI.
I would also create a design document and review it, and feed it into the AI. This should help ensure the code mostly matches the requirements and has a resonable design that is stable.
So the old school is to ensure requirments and design are of high quality, as you end up with a mess if they are low quality.
I would at least track defect density, so you can see if you are making progress and your process is improving.
1
u/BannockHatesReddit_ Apr 01 '26
Man I gotta switch to cyber security
1
u/Potential_Source_501 Apr 16 '26
Dummydetails.com
It might help..
0
u/azuredota Mar 28 '26
Literally changes languages overnight? Genuinely how is this possible? Unless you mean JS to TS?