cpputest setup

Sysprogs forums Forums VisualGDB cpputest setup

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #9916
    Breweryman
    Participant

    I am trying to generate a CPPUTest solution based upon your Raspberry Pi example, in order to eventually test the code that I have running on a Ubuntu box.

    I have upgraded from Linux Edition to Custom Edition and now have version 5.2 (build 1324) of Visual GDB

    When I choose create new Linux Project and select Unit test project  with MSBuild   I find that the Test framework pull down list is empty.

     

    Should the cpputest integration already be available in this menu, as per the ‘works out of the box’ promise?  Or alternatively do I need to download and install the tools separately to be able to use them within my Visual GDB project?

    (I have already installed the tools on the Linux box using sudo apt-get install cpputest but not specifically done anything for this on the windows box)

     

    Thanks

     

    Andy

     

    #9919
    support
    Keymaster

    Hi,

    Normally VisualGDB should download everything automatically. However, if your firewall is blocking the Internet connection for Visual Studio, VisualGDB won’t be able to do that.

    You can check the connection explicitly by opening Tools->VisualGDB Package Manager and going to the ‘Online’ section.

    #9922
    Breweryman
    Participant

    This sounds like it might be part of our IT policy lockdown.  We aren’t allowed to install anything ourselves so have to get someone to come down and run the program as administrator in order to do any automatic upgrades or add any features.

    I’ll get them to try and set things up for me for this and see how it goes.

    Thanks

    Andy

    #9928
    support
    Keymaster

    Hi,

    Thanks for clarifying this, this would indeed interfere with the ‘out-of-the-box’ experience. The only workaround we could suggest is to download the package catalog manually, get the test framework archive and install it via Tools->VisualGDB Package Manager->Install Package from File.

    #9934
    Breweryman
    Participant

    I will give the package catalog option a try tomorrow.

     

    I can confirm that what we have been able to try so far is:

    Get IT to allow Run As Administrator on Visual Studio

    Sign in to VS with my Microsoft account

    Find that Visual GDB is not registered to this admin user so get hold of the original key that was purchased and unlock Visual GDB

    I was then able to see the options for Test Framework being offered with a download option.  I opted to download all options.

    I was then able to build a project that uses CPPUTEST and run the tests while still logged on as Admin.

    I close VS and reopened as a standard user but the options were still missing for the standard user.

    I tried running the project created by the admin user but had a fault along the lines of plugin not installed.

     

    As this has not worked I will have a look at the package catalog option with them tomorrow.

     

    Thanks for the feedback.

     

    Andy

     

     

    #9936
    support
    Keymaster

    Hi,

    The VisualGDB packages are saved for each user independently (under %LOCALAPPDATA%\VisualGDB). If you have downloaded them to a different user, you can simply copy the contents of that folder to your current user account and VisualGDB will recognize those packages automatically.

    #9950
    Breweryman
    Participant

    Thanks to support for the advice.  I can confirm that the method below worked successfully and got me able to use CPPUTEST.  I imagine the same would apply to Google Test Framework

     

    Run Visual Studio as admin
    Enter the key used to licence the product initially (locked to this PC)
    New > Project > Visual GDB > Linux > Unit Test
    From the pull down menu select download from beside cpputest
    Close visual studio

    Copy 2 folders and a file from c:\users\<admin user>\Local\VisualGDB to c:\users\<local user>\Local\VisualGDB
    ToolchainProfiles
    TestFrameworks
    PackageCatalog.xml

     

    • This reply was modified 7 years, 10 months ago by Breweryman.
Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.