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

  • Home
  • SEARCH
  • 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 6378337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T01:59:30+00:00 2026-05-25T01:59:30+00:00

Using TDD, I’m considering creating an (throw-away) empty project as Test-harness/container for each new

  • 0

Using TDD, I’m considering creating an (throw-away) empty project as Test-harness/container for each new class I create. So that it exists in a little private bubble.

When I have a dependency and need to get something else from the wider project then I have to do some work to add it into my clean project file and I’m forced into thinking about this dependency. Assuming my class has a single responsibility then I ought not to have to do this very much.

Another benefit is an almost instant compile / test / edit cycle.

Once I’m happy with the class, I can then add it to the main project/solution.

Has anyone done anything similar before or is this crazy?

  • 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-25T01:59:31+00:00Added an answer on May 25, 2026 at 1:59 am

    I have not done this in general, create an empty project to test a new class, although it could happen if I don’t want to modify the current projects in my editor.

    The advantages could be :

    • sure not to modify the main project, or commit by accident
    • dependencies are none, with certaintly

    The drawbacks could be :

    • cost some time …
    • as soon as you want to add one dependency on your main project, you instantly get all the classes in that project … not what you want
    • thinking about dependencies is usual, we normally don’t need an empty project to do so
    • some tools check your project dependencies to verify they follow a set of rules, it could be better to use of those (as that could be used not only when starting a class, but also later on).
    • the private bubble concept can also by found as import statements.
    • current development environments on current machines already give you extra-fast operations … if not, you could do something about it (tell us more …)
    • when ok, you would need to copy to your regular project your main and your test class. This can cost you time, especially as the package might not be adequate (simplest possible in your early case because your project is empty, but adequate to your regular project later).

    Overall, I’m afraid this would not be a timesaver… 🙁

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

Sidebar

Related Questions

I just started practicing TDD in my projects. I'm developing a project now using
When I implement new features using TDD, I often use the shortcut Shift +
I'm developing a project using BDD/TDD techniques and I'm trying my best to stay
I'm currently building a class using TDD. The class is responsible for waiting for
Am trying to get started using TDD on a class which spits out an
I have this class that I wanted to build using TDD, but I failed.
I'm creating a graph framework for learning purposes. I'm using a TDD approach, so
I'm starting a TDD project using PHPUnit and something really bugs me. It seem
I have been using TDD to drive the project that I am currently working
I recently finished a project using TDD and I found the process to be

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.