VS Solution file with main project and unit test project

Sysprogs forums Forums VisualGDB VS Solution file with main project and unit test project

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #26141
    Markg
    Participant

    Hello,

    We just started using visual gdb and we want to add unit tests. If I understand the examples correctly we have to create a separate solution file per project:

    Solution file project one (contains production code)
    Solution file project one unit tests (contains unit tests for project one)

    What I rather have is:

    Solution file:
    -Project – production code
    -Project – unit tests

    But if I do it that way it will complain about two main.cpp

    Could you guys help us here?

     

    #26144
    support
    Keymaster

    Hi,

    Sorry for the confusion. Although most of VisualGDB’s tutorials indeed show one project per solution, VisualGDB fully supports having multiple projects in the same solution.

    Please simply right-click on the Solution item in Solution Explorer and select Add->New Project to add a new VisualGDB project (e.g. a unit test project) to the existing solution.

    If it doesn’t work, please let us know and we will help you further.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.