machine / machine.specifications

Machine.Specifications is a Context/Specification framework for .NET that removes language noise and simplifies tests.
MIT License
886 stars 178 forks source link

R# Test Runner doesn't work in VS2013 / R# 8.2 #262

Closed pkrakowiak closed 9 years ago

pkrakowiak commented 9 years ago

I can't get the MSpec test runner to work with VS2013 / R# 8.2. I installed the R# extension from the ReSharper Gallery, but it's not available under Options -> Unit Testing and R# does not recognize the unit tests in my project.

zrzut ekranu 186

zrzut ekranu 187

I can't run the .bat (old method) files because they are not available in NuGet packages.

danielmarbach commented 9 years ago

Did you try uninstall, restart, install, restart?

Am 19.01.2015 um 16:31 schrieb Paweł Krakowiak notifications@github.com:

I can't get the MSpec test runner to work with VS2013 / R# 8.2. I installed the R# extension from the ReSharper Gallery, but it's not available under Options -> Unit Testing and R# does not recognize the unit tests in my project.

I can't run the .bat (old method) files because they are not available in NuGet packages.

— Reply to this email directly or view it on GitHub.

pkrakowiak commented 9 years ago

Yes, I did exactly that before posting here. I just found out I've been using an older version of R#, so I uninstalled MSpec plugin, upgraded ReSharper and installed the MSpec plugin again just now. Unfortunately it still doesn't seem to work - MSpec does not show under Tools->Unit Testing menu.

I'm running VS 2013 Update 4 and R# 8.2.3 on Windows 8.1.

agross commented 9 years ago

Does mspec show up under ReSharper, Options, Plugins? There is no other menu for mspec.

Alex

Alexander Groß Tiny phone, tiny mail

On Wed, Jan 21, 2015 at 8:45 AM, Paweł Krakowiak notifications@github.com wrote:

Yes, I did exactly that before posting here. I just found out I've been using an older version of R#, so I uninstalled MSpec plugin, upgraded ReSharper and installed the MSpec plugin again just now. Unfortunately it still doesn't seem to work - MSpec does not show under Tools->Unit Testing menu.

I'm running VS 2013 Update 4 and R# 8.2.3 on Windows 8.1.

Reply to this email directly or view it on GitHub: https://github.com/machine/machine.specifications/issues/262#issuecomment-70797011

pkrakowiak commented 9 years ago

Yes, it does. But unit tests are not recognized (they worked in the same project when I previously used MSpec runner installed from batch files on my old computer).

zrzut ekranu 188

zrzut ekranu 189

danielmarbach commented 9 years ago

The important thing is: are the specs detected or not?

Am 21.01.2015 um 08:45 schrieb Paweł Krakowiak notifications@github.com:

Yes, I did exactly that before posting here. I just found out I've been using an older version of R#, so I uninstalled MSpec plugin, upgraded ReSharper and installed the MSpec plugin again just now. Unfortunately it still doesn't seem to work - MSpec does not show under Tools->Unit Testing menu.

I'm running VS 2013 Update 4 and R# 8.2.3 on Windows 8.1.

— Reply to this email directly or view it on GitHub.

danielmarbach commented 9 years ago

What is your timezone? Might be able to do a remote session during lunch

Am 21.01.2015 um 10:01 schrieb Paweł Krakowiak notifications@github.com:

Yes, it does. But unit tests are not recognized (they worked in the same project when I previously used MSpec runner installed from batch files on my old computer).

— Reply to this email directly or view it on GitHub.

pkrakowiak commented 9 years ago

They are not detected by the R# Test Runner, but they are detected and ran with the command line MSpec tool. My timezone is CEST, our local time is the same.

neoeinstein commented 9 years ago

Did you attempt restarting the Visual Studio process? When I installed the R# plugin for the first time a couple days ago myself, R# didn't recognize the tests either until I quit out and restarted VS. Once that happened, R# began detecting and annotating the specs.

pkrakowiak commented 9 years ago

Yes, I did. It's started and closed every day, sometimes multiple times.

pkrakowiak commented 9 years ago

The only other thing I can think of is having a non-Latin character in my path. But I think VS itself doesn't mind. Here's additional information on how my R# plugins are loaded:

Information about extension Machine.Specifications.Runner.Resharper

Version: 1.0.0 Description: Machine.Specifications.Runner.Resharper provides a Resharper runner for the Context/Specification framework Machine.Specifications Authors: Aaron Jensen, Alexander Groß, Daniel Marbach, et al. Tags: test, unit, testing, context, specification, bdd, tdd, mspec, runner, resharper Dependencies: ReSharper (? 8.2 && < 8.3) License: http://github.com/machine/machine.specifications.runner.resharper/blob/master/License.txt Project: http://github.com/machine/machine.specifications.runner.resharper

This extension contains: a Plugin, Settings

ExtensionManager (Info): Adding extension 'Machine.Specifications.Runner.Resharper' 1.0.0 from 'Default' source ExtensionManager (Info): Enabling extension 'Machine.Specifications.Runner.Resharper' ExtensionPluginSource (Info): Discovering plugins from extension 'Machine.Specifications.Runner.Resharper' NuGetExtension (Info): Looking for 'plugins' files in the Machine.Specifications.Runner.Resharper package folder at C:\Users\Paweł\AppData\Local\JetBrains\ReSharper\vAny\packages\Machine.Specifications.Runner.Resharper.1.0.0 NuGetExtension (Info): The package contains no files in ReSharper\v8.2\vs12.0\plugins NuGetExtension (Info): The package contains no files in VisualStudio\v12.0\vs12.0\plugins NuGetExtension (Info): Found 3 files under ReSharper\v8.2\plugins NuGetExtension (Info): The package contains no files in VisualStudio\v12.0\plugins NuGetExtension (Info): The package contains no files in ReSharper\vAny\plugins NuGetExtension (Info): The package contains no files in VisualStudio\vAny\plugins NuGetExtension (Info): The package contains no files in DotNet\v1.0\plugins NuGetExtension (Info): The package contains no files in DotNet\vAny\plugins ExtensionPluginSource (Info): Discovered plugins 'Machine.Specifications Runner for ReSharper 8.2' from extension 'Machine.Specifications.Runner.Resharper' ExtensionPluginSource (Info): Enabling plugin 'Machine.Specifications Runner for ReSharper 8.2' from extension 'Machine.Specifications.Runner.Resharper' ExtensionPluginSource (Info): Adding 1 plugin(s) from extension 'Machine.Specifications.Runner.Resharper' PluginLoader (Info): Plugin has 3 files under the C:\Users\Paweł\AppData\Local\JetBrains\ReSharper\vAny\packages\Machine.Specifications.Runner.Resharper.1.0.0\ReSharper\v8.2\plugins folder: Machine.Specifications.ReSharper.Provider.8.2.dll, Machine.Specifications.ReSharper.Runner.8.2.dll, Machine.Specifications.Runner.Utility.dll. ExtensionsExternalAnnotationsFileProvider (Info): Discovering external annotations files for extension 'Machine.Specifications.Runner.Resharper' NuGetExtension (Info): Looking for 'annotations' files in the Machine.Specifications.Runner.Resharper package folder at C:\Users\Paweł\AppData\Local\JetBrains\ReSharper\vAny\packages\Machine.Specifications.Runner.Resharper.1.0.0 NuGetExtension (Info): The package contains no files in ReSharper\v8.2\vs12.0\annotations NuGetExtension (Info): The package contains no files in VisualStudio\v12.0\vs12.0\annotations NuGetExtension (Info): The package contains no files in ReSharper\v8.2\annotations NuGetExtension (Info): The package contains no files in VisualStudio\v12.0\annotations NuGetExtension (Info): The package contains no files in ReSharper\vAny\annotations NuGetExtension (Info): The package contains no files in VisualStudio\vAny\annotations NuGetExtension (Info): The package contains no files in DotNet\v1.0\annotations NuGetExtension (Info): The package contains no files in DotNet\vAny\annotations ExtensionsExternalAnnotationsFileProvider (Info): No external annotations files found for extension 'Machine.Specifications.Runner.Resharper' ExtensionSettingsLoader (Info): Discovering settings files for extension 'Machine.Specifications.Runner.Resharper' NuGetExtension (Info): Looking for 'settings' files in the Machine.Specifications.Runner.Resharper package folder at C:\Users\Paweł\AppData\Local\JetBrains\ReSharper\vAny\packages\Machine.Specifications.Runner.Resharper.1.0.0 NuGetExtension (Info): The package contains no files in ReSharper\v8.2\vs12.0\settings NuGetExtension (Info): The package contains no files in VisualStudio\v12.0\vs12.0\settings NuGetExtension (Info): The package contains no files in ReSharper\v8.2\settings NuGetExtension (Info): The package contains no files in VisualStudio\v12.0\settings NuGetExtension (Info): Found 3 files under ReSharper\vAny\settings NuGetExtension (Info): The package contains no files in VisualStudio\vAny\settings NuGetExtension (Info): The package contains no files in DotNet\v1.0\settings NuGetExtension (Info): The package contains no files in DotNet\vAny\settings ExtensionSettingsLoader (Info): Discovered 3 settings files files under folder C:\Users\Paweł\AppData\Local\JetBrains\ReSharper\vAny\packages\Machine.Specifications.Runner.Resharper.1.0.0\ReSharper\vAny\settings from extension 'Machine.Specifications.Runner.Resharper': ReSharper.FileTemplates.DotSettings, ReSharper.LiveTemplates.DotSettings, ReSharper.SurroundTemplates.DotSettings ExtensionSettingsLoader (Info): Adding 3 settings file(s) from extension 'Machine.Specifications.Runner.Resharper'

mooondogg commented 9 years ago

Has this issue been solved? I have the exact same problem. I cant get MSpec Runner to work with Resharper 8.2 in VS 2013 and also not in VS2012. I am using version 1.0.0 of Machine.Specification.Runner.Resharper.

danielmarbach commented 9 years ago

Yes it is solved. Did you install over gallery?

Am 20.02.2015 um 16:38 schrieb mooondogg notifications@github.com:

Has this issue been solved? I have the exact same problem. I cant get MSpec Runner to work with Resharper 8.2 in VS 2013 and also not in VS2012. I am using version 1.0.0 of Machine.Specification.Runner.Resharper.

— Reply to this email directly or view it on GitHub.

pkrakowiak commented 9 years ago

When was it solved? I checked for updates a couple days ago but there were none.

danielmarbach commented 9 years ago

@pkrakowiak Add me in skype, I'll have a look

mooondogg commented 9 years ago

I did install it from the gallery. I also installed in on another computer, but it didn't work there either.

pkrakowiak commented 9 years ago

@danielmarbach Last published version in the R# gallery is from 2014-12-29.

mooondogg commented 9 years ago

It's the version published 2014-12-29 I have installed which I cannot get to work. I get "No tests found in project"

mooondogg commented 9 years ago

I finally found a solution for my problem. I used the latest Mspec runner for resharper, but my test project referenced an older version of mspec. When I referenced a newer one, everything worked as it should.

danielmarbach commented 9 years ago

Yes. The new runner is only compatible with 0.9.0 and higher

pkrakowiak commented 9 years ago

Ouch! Then it's no surprise it didn't work for me - we reference a really old MSpec version in that project (I tried to update it yesterday with NuGet packages to no avail, but that's another story). I upgraded ReSharper to version 9 this week and installed the MSpec Test Runner using JetBrains' new plugin installer. It works fine (except in this project). I think we can close this report.