How to enable mighty moose (continuoustests) in visual studio 2013?

3.5k views Asked by At

The question pretty much tells it all.

Continoustests comes as a windows installer (http://continuoustests.com/download.html), so the trick described here doesn't work.

3

There are 3 answers

3
jessehouwing On BEST ANSWER

I tried the following:

  1. Install Mighty Moose
  2. copy the C:\Program Files (x86)\ContinuousTests\AutoTest.VS.2012.Addin to C:\Program Files (x86)\ContinuousTests\AutoTest.VS.2013.Addin
  3. Edit the 2013 file and update the version numbers from 11.0 to 12.0
  4. Alternatively: drop the following file: AutoTest.VS.2013.Addin in your MightyMoose installation folder.
  5. In Visual Studio open the Tools - Options - Environment - Add-in Security page and add C:\Program Files (x86)\ContinuousTests to the list of trusted add-in paths.
  6. Restart Visual Studio

This seems to do the trick for me. Not sure if there are any issues with this, as I haven't played around with it too much. I had Visual Studio 2010, 2012 and 2013 installed side-by-side, so I didn't have to trick the installer into believing that there is a suitable version of Visual Studio anywhere.

Then

Follow the steps in the next answer below :)

14
fourpastmidnight On

@jessehouwing's answer is on the mark! But, there's one problem left unresolved: the code coverage margin of Mighty Moose still won't appear. So, in addition to following @jessehouwing's suggestion above, you must also do the following in order for the code coverage margin and the various test call graph overlays to work.

  1. Go to the Visual Studio 2013 installation folder. By default, this is %ProgramFilesx86%\Microsoft Visual Studio 12.0.
  2. Within that folder, navigate to \Common7\IDE\Extensions.
  3. Create a new folder called Continuous Tests (yes, it does have a space in its name).
  4. Choose one of two paths below:
    1. If you have a previous version of Visual Studio installed:
      1. Navigate to %ProgramFilesx86\Microsoft Visual Studio x.0\Common7\IDE\Extensions\Continuous Tests, where x.0 is the previous version of Visual Studio, e.g. 2008 - 2012.
      2. Copy the extension.vsixmanifest file from the current directory to the directory created in step 3 above.
    2. If you don't have a previous version of Visual Studio installed:
      1. Go to the installation directory for Mighty Moose, by default %ProgramFilesx86%\ContinuousTests, and copy the extension.vsixmanifest file to the directory created in step 3 above.
  5. Start notepad as an administrator.
  6. Open the copied extension.vsixmanifest file.
  7. Add the text indicate below into the extension.vsixmanifest file after the included text shown (you don't need to add the comment), and save the file:

    <SupportedProducts>
        <VisualStudio Version="11.0">
            <Edition>Ultimate</Edition>
            <Edition>Premium</Edition>
            <Edition>Pro</Edition>
        </VisualStudio>
        <!-- ADD THE TEXT BELOW TO ENABLE VISUAL STUDIO 2013 SUPPORT -->
        <VisualStudio Version="12.0">
            <Edition>Ultimate</Edition>
            <Edition>Premium</Edition>
            <Edition>Pro</Edition>
        </VisualStudio>
    </SupportedProducts>
    
  8. If you copied the extension.vsixmanifest file from the Extensions directory of a previous version of Visual Studio, you are finished. Otherwise, continue on to step 9.
  9. Find the following text within the extension.vsixmanifest file:

    <Content>
        <MefComponent>|%CurrentProject%|</MefComponent>
    </Content>
    
  10. Change |%CurrentProject%| to the following:

    %Mighty_Moose_Install_Path%\AutoTest.VS.RiskClassifier.dll
    

    where %Mighty_Moose_Install_Path%, by default, is %ProgramFilesx86%\ContinuousTests. (Use the actual path, not the expansion macro!)

  11. Save the file.
  12. If you have Visual Studio 2013 open, restart Visual Studio for the changes to take effect. If you want to verify that the extension is installed, go to Tools|Extension and Updates... and search for Mighty Moose in the list of extensions.

Hope that helps save someone a few hours worth of time trying to figure this out.

2
Twisted On

If you are installing on a fresh machine with no previous versions of visual studio installed there are a few extra steps to get it working. Here are the full steps:

  1. Follow the answer from @jessehouwing
  2. Put msbuild in the 2012 location by copying the file Microsoft.Build.Tasks.v12.0.dll from C:\Program Files (x86)\MSBuild\12.0\Bin to C:\Windows\Microsoft.NET\Framework\v4.0.30319
  3. Follow the answer from @fourpastmidnight
  4. Reboot
  5. Install another visual studio extension of your choice from "Extensions and Updates" inside visual studio 2013 (I tested with Code Maid but I suspect any extension will provide the required kick)
  6. Restart Visual Studio. Mighty Moose wakes up and the code coverage icons appear.
  7. It is now safe to uninstall the extension you added in step 5 if you don't want it.