18
B-Con
2y

21 lines of business logic (including whitespace and comments)

9 lines of build config

386 lines of tests (and tests for the tests)

Comments
  • 2
    Ah, I see you're a man of culture (enterprise Java/Spring/Dotnet dev working in the B2B space)
  • 6
    If you find yourself starting to write tests for tests, it might be better to start getting into formal verification and tools like Coq instead.
  • 1
    It sounds like a joke but are tests for tests real?
  • 3
    TDD simps
  • 2
    @Lensflare My tests included a non-trivial dependency stub, which should be tested to ensure it stubs correctly.
  • 0
    I don’t think I’ll ever write tests
  • 1
    @Oktokolo i love coq
  • 0
    Lmao I told you
  • 0
    Large tests are usually due to hideously coupled code. What % of those test lines are due to setup?

    How many conditionals are hidden in that business logic and build logic? How many things can go wrong? What's the impact of them going wrong? How easy is it to change those lines?
    ^ tests help break this up

    If they've got tests testing test _helpers_, then they probably are trying to convert those helpers into "production code" and make the production code use the better written helpers (we're trying this now and it's making our 8 year legacy much more tolerable + test setups tiny! ✨)
Add Comment