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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:33:09+00:00 2026-05-23T13:33:09+00:00

My question is about test files by which I mean non-code files on which

  • 0

My question is about test files by which I mean non-code files on which some of my automated tests depend (*.xml, *.xls, *.jpg etc). So I’ll use sample test files not to be confused with test files meaning code files containing tests.

Most of my automated tests are issolated unit tests but I also have some integration tests in a single project (MyApp.Tests.Integration) that verify the behaviour of classes that interact with external dependencies.

My collection of sample test files are contained in another project in my solution called MyApp.Tests.TestFiles. Each file has a build action of ‘Content’ and Copy If Newer’ set in it’s properties.

MyApp.Tests.TestFiles

When I run my tests the solution is built and the files are copied to my output directory “bin\Debug” and my integration tests refer to them there.

The problem that triggered the question was that I’d been committing my sample test files to my svn repository, which is hosted online with a limited amount of storage, alongside my code. The files were occupying an excessive amount of space in the repository. I’ve since reconstructed the repository and reduced all sample test files to a minimum size.

In most cases the sample test files are unlikely to change so while I want them available to check out from my repository with a Working Copy, there’s no real reason to have them under version control as long as I can reconstruct the MyApp.Tests.TestFiles\TestFiles directory structure to run the tests against.

That’s the scenario, I’m hoping for answers to the following points:

  • Is there a better way to work with these files?
  • Would it be better to keep these files somewhere outside of my solution?
  • Can I keep any required files in my svn repository but not under version control?
  • Would learning more about MSBuild be helpful to me?
  • 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-23T13:33:10+00:00Added an answer on May 23, 2026 at 1:33 pm

    I doubt that there will be agreement on the “best” way to organize things. I know in my SCM system I typically like to have a single folder that contains a folder for the deployable code and the test code. Let’s say I’m building Widget and I have a dll called MyLibrary. Then the folder Widget will have a folder called MyLibrary and one called MyLibrary_test. In VS I do the same thing and I keep my test project in the same solution as my deployable project. I work alone so larger teams may find other organizing styles more suitable.

    I treat my test code just like the deployable source code. It is in the source code management system. SVN keeps difference files so keeping versioned copies of your test files is not that expensive. SVN even tries to keep deltas on binaries but sometimes that doesn’t work out as well as one mighthope. I don’t believe SVN is designed to keep a single latest only copy of a source file. The “delta” approach wouldn’t work so well. The first time you accidentally make a change to a test file you’re going to wish you could go back and grab the lat working version.

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

Sidebar

Related Questions

This answer to a question about C++ unit test frameworks suggests a possibility that
I am learning Java for a test (tomorrow) and am wondering about a question
I have a question about using streams in .NET to load files from disk.
Questions #1 through #4 on the Joel Test in my opinion are all about
My question about the reconfiguration delay when switching between Access 2003 and 2007 the
I recently asked a question about IIf vs. If and found out that there
I was reading this question about how to parse URLs out of web pages
I recently asked a question about what I called method calls. The answer referred
I recently asked a question about Oracle Encryption. Along the way to finding a
I have a question about best practices regarding how one should approach storing complex

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.