Said It Here

How do you test if AI-generated code actually works for your business?

AI code and formulas often run without crashing while producing completely wrong numbers or violating custom business logic. Because writing tests to catch these logical errors takes more time than generating the code, people find themselves unable to properly verify what's been built and end up harmed by hidden mistakes.

What people tried

Every workaround mentioned in the threads below. We haven’t tested any of them — and nobody here is claiming they worked.

  1. 1
    writing tests to catch logic errors
  2. 2
    Manually reviewing and testing AI-generated configurations or restricting platform-wide usage of AI tools.

In their words

Unedited, grouped by where they were said, most upvoted first within each place, each linked to the thread it came from.

r/salesforce2 people · October 2026

“Any AI can make an oppsie, but I've found people who rely on AI can't (or won't) properly test what's been built.”source ↗

Waitin4Godot · r/salesforce · 1 upvotes

“I have been personally harmed by Einstein generated formulas.”source ↗

867-53oh-nine · r/salesforce · 1 upvotes
r/smallbusiness1 person · September 2026

“the part that actually takes time is making sure what it wrote matches my actual business rules and not just what looks reasonable.”source ↗

“Bottleneck for me isn't the agent, it's writing tests that would catch a wrong number instead of just a crash, since the code runs fine either way.”source ↗

Readypixels · r/smallbusiness · 1 upvotes

Where this came up

People with this problem also raised