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 767755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:04:30+00:00 2026-05-14T18:04:30+00:00

For the sake of this question, I don’t care about the difference between stubs,

  • 0

For the sake of this question, I don’t care about the difference between stubs, mocks, dummies, fakes, etc.

Let’s say I’m working on a project with one other person. I’m working on component A and he is working on component B. They work together, so I stub out B for testing, and he stubs out A. We’re working in a DVCS, let’s say Git, because that’s actually the case here.

When it comes time to merge our components together, we need to get the “real” files from my A and his B, but throw away all the fake stuff. During development, it’s likely (unless I need to learn how to properly stub things) that the fakes have the same file names and class names as the real thing.

So my question is: what is the proper procedure for doing version control on the fakes, and how are the components correctly merged, making sure to grab the real thing and not the fake? I would guess that one way is just do the merge, expect it to say CONFLICT, and then manually delete all the fake code out of the half-merged files. But this sounds tedious and inefficient.

Should the fake things not go under VC at all? Should they be ripped out just before merging? Sorry if the answer to this should be obvious or trivial, I’m just looking for a “suggested practice” here.

edit: some more information that I didn’t realize would prove important. I’m specifically talking about web development, more specifically, I’m NOT talking about .NET development. My history seems to have misled people in that regard.

  • 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-14T18:04:31+00:00Added an answer on May 14, 2026 at 6:04 pm

    So basically this is the situation (to make sure I’m understanding correctly):

    • Unit tests for component A are written against fake component Bs
    • Component B wasn’t ready, but now it is
    • You want to refactor the tests to use the real component B instead of the fakes

    I would actually not recommending doing that last step. I would leave the existing unit tests for A written against fake Bs, because they are supposed be testing A. Now that A and B are both ready, I would write a new set of integration tests that test the interaction between A and B.

    As for the fakes and real classes having the same names, I would fix that with some policy that you and the other developer agree upon on where to keep fakes in the file structure as opposed to real classes.

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

Sidebar

Related Questions

This question is just for a sake of knowledge. I don't have any practical
This is heavily simplified for the sake of the question. Say I have a
This question is a folo to a previous question I asked about how to
For the sake of this question, here is my generic class. [ComVisible(true)] public class
This falls under the category of asking a question for the sake of answering
I don't know if my question should be asked here or not. Please let
I'm using AvalonDock in a project. For the sake of this example, it is
I have my markup like this (for argument's sake) <div id=content></div> <div id=layout></div> <div
I know this isn't right, but for the sake of illustration I'd like to
For simplicities sake, I'll make up a similar example to what I have: Let's

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.