Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3331102
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T23:33:13+00:00 2026-05-17T23:33:13+00:00

Has anyone worked at a large company, or on a very large project, that

  • 0

Has anyone worked at a large company, or on a very large project, that successfully used unit testing?

Our current database has ~300 tables, with ~100 aggregate roots. Overall there are ~4000 columns, and we’ll have ~2 Million lines of code when complete. I was wondering – do companies with databases of this size (or much larger) actually go through the effort to Mock/Stub their domain objects for testing? It’s been two years since I worked in a large company, but at the time all large applications were tested via integration tests. Unit testing was generally frowned upon if it required much set up.

I’m beginning to feel like Unit testing is a waste of time for anything but static methods, as many our test methods take just as long or longer to write than the actual code … in particular, the setup/arrange steps. To make things worse, one of our developers keeps quoting how Unit Testing and Agile methods was such an abject failure on Kent Beck’s Chrysler project … and that it’s just not a methodology that scales well.

Any references or experiences would be great. Management likes the idea of Unit Testing, but if they see the amount of extra code we’re writing (and our frustration) they’d be happy to back down.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T23:33:13+00:00Added an answer on May 17, 2026 at 11:33 pm

    I’ve seen TDD work very well on large projects, especially to help us get a legacy code base under control. I’ve also seen Agile work at a large scale, though just doing Agile practices alone isn’t sufficient I think. Richard Durnall wrote a great post about how things break in a company as Agile gains ground. I suspect Lean may be a better fit at higher levels in an organisation. Certainly if the company culture isn’t a good match for Agile by the time it starts being used across multiple projects, it won’t work (but neither will anything else; you end up with a company that can’t respond effectively to change either way).

    Anyway, back to TDD… Testing stand-alone units of code can sometimes be tricky, and if there’s a big data-driven domain object involved I frequently don’t mock it. Instead I use a builder pattern to make it easy to set that domain object up in the right way.

    If the domain object has complex behaviour, I might mock that so that it behaves predictably.

    For me, the purpose of writing unit tests is not really for regression testing. It helps me think about the behaviour of the code, its responsibilities and how it uses other pieces of code to help it do what it does. It provides documentation for other developers, and helps me keep my design clean. I think of them as examples of how you can use a piece of code, why it’s valuable and the kind of behaviour you can expect from it.

    By thinking of them this way I tend to write tests which make the code easy and safe to change, rather than pinning it down so nobody can break it. I’ve found that focusing on mocking everything out, especially domain objects, can cause quite brittle tests.

    The purpose of TDD is not testing. If you want to test something you can get a tester to look at it manually. The only reason that testers can’t do that every time is because we keep changing the code, so the purpose of TDD is to make the code easy to change. If your TDD isn’t making things easier for you, find a different way to do it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Has anyone using .net actually worked out how to successfully sign a signature to
Has anyone successfully tried minifying AND concatenating all the jqGrid locale files so that
Has anyone worked with the programming language Church ? Can anyone recommend practical applications?
Has anyone ever worked with a system of passing back say, some JSON data
Has anyone ever used the hidden class PackageParser in Android source code with java
Has anyone used Hazelcast (preferably 2.1) with play framework 2.0/2.1 (not 1.2+)? I am
Has anyone worked with the iAd framework? Actually, I am trying to implement Location
Has anyone worked with .Net code to read/manage VLQs? There is a Java method
Has anyone worked with TestRail? If so, I would love some help in figuring
Has anyone worked with JFreeChart-open source library for plotting xy plots? Could someone post

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.