---
title: "Discussion on \"A test can pass without proving the required behavior\" | Hashnode"
description: "Discussion on \"A test can pass without proving the required behavior\". Weak assertions and mocks that verify wiring, not behavior, can still get merged."
url: "https://hashnode.com/posts/a-test-can-pass-without-proving-the-required-behavior/6a6b9dbd2407255b30196c9f"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A test can pass without proving the required behavior](https://blog.mindrealm.ai/a-test-can-pass-without-proving-the-required-behavior?utm_source=hashnode&utm_medium=feed)

Weak assertions and mocks that verify wiring, not behavior, can still get merged.

Jul 30 · 7 min read · blog.mindrealm.ai  
Read the article

-   [#ai](https://hashnode.com/tag/ai)
-   [#testing](https://hashnode.com/tag/testing)
-   [#tools](https://hashnode.com/tag/tools)
-   [#programming-tips](https://hashnode.com/tag/programming-tips)

## Written by

[Bryce Darling](https://hashnode.com/@mindrealm)

@mindrealm · Asheville, NC

  
[View profile](https://hashnode.com/@mindrealm)

Making AI-generated code safer to ship. Consulting: advising, building, coaching on AI

I build Mindrealm: it catches the slop your AI agent ships confidently, then makes it fix it. 75+ deterministic checks across Go, Rust, TypeScript, and Python.

## Responses 1

Markdown supported · ⌘↵ to post

[Julian Neagu](https://hashnode.com/@julianneagulab)

[Aug 3](https://hashnode.com/posts/a-test-can-pass-without-proving-the-required-behavior/6a6b9dbd2407255b30196c9f/comment/6a705d1592cf4805a09669ba)

This is becoming a bigger issue with AI-written code. A green test feels safe, but the real question is what can still break while it stays green.
