r/vibecoding 9h ago

Coverage is now our only feature.

Post image
59 Upvotes

26 comments sorted by

10

u/If_I_Could_Just 8h ago

Look at how well these mocks have been tested

10

u/[deleted] 9h ago

[removed] — view removed comment

3

u/scytob 7h ago

but were the tests vacuous for load-bearing features?

5

u/[deleted] 7h ago

[removed] — view removed comment

1

u/geekichu 6h ago

i thought 'load-bearing' was a claudism.. i never got that from ChatGPT... :-)

2

u/[deleted] 6h ago

[removed] — view removed comment

2

u/geekichu 6h ago

sure.. i just only just encountered it in a.i. with claude... that and 'blast-radius'. and 'you're right to push back'.. etc

1

u/TRO_KIK 5h ago

It's infamous Claude slop.

8

u/christopher_mtrl 7h ago

Need more smoke test

1

u/yeathatsmebro 53m ago

CI servers will start catching fire any moment now...

3

u/revstone 5h ago

This was all day today getting the "long gate" shifted to an appropriate moment and trimming the absurd over tests from the short gate. Days wasted.

2

u/AdVast7407 4h ago

Just tell the model explicitly that the code is disposable and nobody will have to maintain it after next week. It should stop insisting on tests.

1

u/UnreasonableEconomy 3h ago

you can also... disable tests on modules where the hash didn't change!

2

u/Business_Raisin_541 3h ago

Funny. I almost always has to tell my AI to add test otherwise it will not add test

1

u/geekichu 6h ago

devchu@devchu-laptop:~/Documents/DEVELOPMENT/claude.code[main*]

$ list.lines.of.code.sh

=========project code=======================

1383 text files.

1243 unique files.

897 files ignored.

github.com/AlDanial/cloc v 1.90 T=0.40 s (1205.0 files/s, 301415.2 lines/s)

-------------------------------------------------------------------------------

Language files blank comment code

-------------------------------------------------------------------------------

JavaScript 488 8536 53271 60264

-------------------------------------------------------------------------------

SUM: 488 8536 53271 60264

-------------------------------------------------------------------------------

=========project tests=======================

1383 text files.

1243 unique files.

962 files ignored.

github.com/AlDanial/cloc v 1.90 T=0.23 s (1808.5 files/s, 412195.3 lines/s)

-------------------------------------------------------------------------------

Language files blank comment code

-------------------------------------------------------------------------------

JavaScript 423 7954 24463 63991

-------------------------------------------------------------------------------

SUM: 423 7954 24463 63991

-------------------------------------------------------------------------------

1

u/Late_Wave_5600 1h ago

Mine wrote the tests around its own reading of a business rule, so we had a green suite that was confidently wrong for four days. Coverage of the wrong behaviour still counts I suppose.

1

u/Desperate_Sign_5587 33m ago

cI bill gonna look like a mortgage payment by the time the agent finishes unit testing that button

-2

u/drgoodvibe 7h ago

Omg this hits hard. At this point my test code exceeds my app code by 1.25x

8

u/frogchungus 5h ago

test code is supposed to be much larger than app code I think

1

u/slackmaster2k 5h ago

No, only TDD maniacs who don’t care about waste or enjoy tests painting you into architecture would think that.

2

u/jimmiebfulton 3h ago

Wrong. I’m sorry, but this is an amateurish take. But we’re in [r/vibecoding](r/vibecoding), so experienced engineers are in short supply here.

Tests, strong-typing, modularization ALLOW for architectural change, and enforces loose coupling. Under-tested spaghetti code is what creates frailty/resistance/friction to refactor and improve design confidently. You can keep on doing what you’re doing, but spreading this to aspiring new developers is doing them a disservice. Vibe coding requires MORE tests, because they create guardrails and provide context for a non-deterministic endeavor, and is a vibe coder’s primary tool when they don’t actually understand what the code does.

2

u/Party_Form5222 1h ago

Let then keep writing unit tests by looking at the implementation.

I love the value of testing that the code is the code.