News for hackers. Stuff that matters.
Re:Minecraft removing obfuscation in Java Edition by cess11 on Friday October 31, 2025 @06:08AM (#45770270)
I'm not a fan of extensive mocking but you're conflating two rather different test cases. A test where you mock out the database connection is testing something in application code, which has nothing to do with database configuration. You should of course have tests towards the database too, but then you'd mock out parts of the application instead and not the database itself.
Re:Minecraft removing obfuscation in Java Edition by high_na_euv on Friday October 31, 2025 @06:17AM (#45770328)
>A test where you mock out the database connection is testing something in application code, which has nothing to do with database configuration.

Wdym?

You're testing e.g simple crude operation, e.g create hn thread

With mocked db it passed, with real db it fails due to encoding issue.

The result is that tests are green, but app does not work.