Menu

VC++: test files in production dir? test dir?

Help
Anonymous
2002-07-02
2002-07-02
  • Anonymous

    Anonymous - 2002-07-02

    In a VC++ workspace with multiple projects to build libraries for one exe, do you recommended keeping the test files in a separate test directory or in the various production code directories?

    I'm assuming the test files are only built into a separate test app in a separate project, as opposed to being added to the main production code. (?)

    Advice appreciated.

    Kelley

    mkh@veeco.com

     
    • Tom Plunket

      Tom Plunket - 2002-07-02

      The decision depends entirely on what you want to do.  :)  In my many small projects, I keep all files in one directory; class.cpp, class.h, and class_t.cpp is the test file.  In a bigger project that I'm just now starting, I'll be keeping the tests separate from the other project files.

      As for building your tests in to your executable, most certainly allow for having the tests built and link with the production code, there might be "Release" issues, after all.  However, it would be prudent to have a target that doesn't link in those tests.  In any case, I keep them all in the same project; makes more sense to me that way.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.