Sysprogs forums › Forums › VisualGDB › cpputest setup
- This topic has 6 replies, 2 voices, and was last updated 7 years, 10 months ago by Breweryman.
-
AuthorPosts
-
January 3, 2017 at 18:52 #9916BrewerymanParticipant
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
January 4, 2017 at 06:18 #9919supportKeymasterHi,
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.
January 4, 2017 at 10:12 #9922BrewerymanParticipantThis 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
January 4, 2017 at 20:52 #9928supportKeymasterHi,
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.
January 4, 2017 at 22:48 #9934BrewerymanParticipantI 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
January 4, 2017 at 22:50 #9936supportKeymasterHi,
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.
January 6, 2017 at 08:20 #9950BrewerymanParticipantThanks 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 studioCopy 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.
-
AuthorPosts
- You must be logged in to reply to this topic.