Comments (12)
Are you using the latest version of the plugin? It should be version 2.1.7.
If you are, can you run with logging enabled?
- Start Visual Studio with ReSharper in internal mode:
devenv /ReSharper.Internal
- Go to ReSharper → Options → Unit Testing and check Enable Logging
- Create the
%TEMP%\JetLogs
folder - Run the tests
The test runner will generate a log file in %TEMP%\JetLogs
detailing what it's done. Can you post that so we can see what's going on?
from resharper-xunit.
I'm experiencing the same issue (except for me, even VS test explorer doesn't work...):
23:12:29.220: 1: Connecting to 127.0.0.1:8078
23:12:29.225: 1: Waiting for tasks.
23:12:29.238: 3: Configuration received: <configuration><runner-paths /><runner-infos><runner-info id="xUnit" code-base="xunitcontrib.runner.resharper.runner.9.1.DLL" type-name="XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner" /></runner-infos></configuration>
23:12:29.239: 3: Using JetBrains.ReSharper.TaskRunnerFramework.DummyClientController
23:12:29.268: 5:Runner thread: Processing packets
23:12:29.268: 5:Runner thread: <task-start />
23:12:29.271: 5:Runner thread: Executing 1 root tasks
23:12:29.272: 5:Runner thread: Loading TaskRunner xUnit (XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner) from file:///C:/Users/Nero/AppData/Local/JetBrains/Installations/ReSharperPlatformVs14_000/xunitcontrib.runner.resharper.runner.9.1.DLL
23:12:29.275: 5:Runner thread: <task-start><task task-type="XunitContrib.Runner.ReSharper.RemoteRunner.Tasks.XunitBootstrapTask, xunitcontrib.runner.resharper.runner.9.1, Version=2.0.6.25609, Culture=neutral, PublicKeyToken=null" runnerID="xUnit" id="8a7a176a-bceb-4715-9065-ec490625704f" ProjectId="946884C9-B569-4772-AC6F-2D7244975D52" /></task-start>
23:12:29.294: 5:Runner thread: <task-exception type="System.ArgumentException"><task task-type="XunitContrib.Runner.ReSharper.RemoteRunner.Tasks.XunitBootstrapTask, xunitcontrib.runner.resharper.runner.9.1, Version=2.0.6.25609, Culture=neutral, PublicKeyToken=null" runnerID="xUnit" id="8a7a176a-bceb-4715-9065-ec490625704f" ProjectId="946884C9-B569-4772-AC6F-2D7244975D52" /><message>The path is not of a legal form.</message><stack-trace> at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.GetDirectoryName(String path)
at XunitContrib.Runner.ReSharper.RemoteRunner.TestEnvironment.GetAssemblyFolder(TaskExecutorConfiguration config, XunitTestAssemblyTask assemblyTask)
at XunitContrib.Runner.ReSharper.RemoteRunner.TestEnvironment..ctor(XunitTestAssemblyTask assemblyTask)
at XunitContrib.Runner.ReSharper.RemoteRunner.TestRunner.Run(XunitTestAssemblyTask assemblyTask)
at XunitContrib.Runner.ReSharper.RemoteRunner.XunitTaskRunner.ExecuteRecursive(TaskExecutionNode node)
at JetBrains.ReSharper.TaskRunnerFramework.StartupTaskRunnerHost.Execute(TaskExecutionNode node)</stack-trace></task-exception>
23:12:29.294: 5:Runner thread: <task-finish result="Exception"><task task-type="XunitContrib.Runner.ReSharper.RemoteRunner.Tasks.XunitBootstrapTask, xunitcontrib.runner.resharper.runner.9.1, Version=2.0.6.25609, Culture=neutral, PublicKeyToken=null" runnerID="xUnit" id="8a7a176a-bceb-4715-9065-ec490625704f" ProjectId="946884C9-B569-4772-AC6F-2D7244975D52" /><message>ArgumentException: The path is not of a legal form.</message></task-finish>
23:12:29.294: 5:Runner thread: Finished processing packets
23:12:29.295: 5:Runner thread: <task-finish result="Success" />
23:12:29.298: 3: Closing server
from resharper-xunit.
@Grinderofl is this an asp.net 5/DNX test? The exception indicates that the plugin has the wrong path to the assembly. If you're trying to run a DNX test, this path is likely to be invalid, as DNX does testing without compiling an actual .dll to disk.
from resharper-xunit.
I have the same issue. Not using DNX, or xUnit (MSTest...sadly). I think this is a bug in the test explorer of resharper, not this add-in.
from resharper-xunit.
Can you get a trace for the mstest issue for me, please? I can see if it's related, and if not I can forward to the ReSharper issue tracker.
from resharper-xunit.
I'll see what I can do. I tracked down the main part of my issue to a workaround I had installed to get code-based test data to work in MSTest (as we know, MSTest is horrible...just need time to migrate to xUnit). I stopped using that workaround and things started working. However, in principle, the workaround should be working - so I'll try to whip up a test project that exhibits the issue and get back to you.
from resharper-xunit.
Hi,
I'm using xUnit 2.0.0, Visual Studio 2015 (Release version) and ReSharper 9.1.1
Test runner stopped to recognize Theory, tests became unconclusive. In logs I see
15:33:11.918: 8: Discovered: «UnitTests.Web.Site.AccountControllerTests.LogIn_ByPassword_Success - UnitTests.Web.Site.AccountControllerTests.LogIn_ByPassword_Success (d860e37fb3e4e964cdb87fbce8886e15b5a81543)»
15:33:11.920: 8: Test case is NOT a requested method: «UnitTests.Web.Site.AccountControllerTests.LogIn_ByPassword_Success - UnitTests.Web.Site.AccountControllerTests.LogIn_ByPassword_Success (d860e37fb3e4e964cdb87fbce8886e15b5a81543)»
15:33:11.921: 8: Test case class unknown. Cannot be a dynamic test of a requested class. UnitTests.Web.Site.AccountControllerTests - «UnitTests.Web.Site.AccountControllerTests.LogIn_ByPassword_Success - UnitTests.Web.Site.AccountControllerTests.LogIn_ByPassword_Success (d860e37fb3e4e964cdb87fbce8886e15b5a81543)»
from resharper-xunit.
Fixed by updating version of AutoFixture in app.config.
from resharper-xunit.
Glad it's working. If there are any other issues, please reopen.
from resharper-xunit.
This also happened to me, and found the solution that actually worked in here:
http://www.henrikbrinch.dk/Blog/2012/02/15/Making-Resharper-testrunner-work-in-64-bit
Hope this will help you
from resharper-xunit.
Ouch. That's a pretty nasty "fix". ReSharper already ships with both 32 and 64 bit versions of the test runner executables. It will pick one up automatically depending on the bit-ness of your test project (so it needs to be the same as your system under test, or you'll get a BadImageFormatException
). But you can also force it via the options - specify which version of the .net framework to target, and which bit-ness to use. That's a much better option that copying and renaming executables. I'll add a comment to that blog post, too.
from resharper-xunit.
Thanks
from resharper-xunit.
Related Issues (20)
- 2.3.3 showing diagnostic Errors popup where 9 wasn't, how to disable? HOT 5
- How to debug a specific set of data of a theory? HOT 2
- Add support for R# 10.1 (EAP / Wave 5.0) HOT 26
- Difference in count of available tests HOT 6
- Cannot install v2.3.4 for Resharper 1.0.2 HOT 7
- Plugin not finding test assembly HOT 1
- Running a test marked as [Fact] runs tests in the same class marked with [Theory] HOT 1
- when test methods are in base class, traits on a child class, they show as <Uncategorized> HOT 1
- Running Nancy tests fails with ArgumentException HOT 2
- dotCover 10.0.2 shows empty coverage when running tests using this extension HOT 1
- Using dnx version > to 451 makes Unit test disappears from test explorer HOT 1
- Unable to run tests for Universal Class Library HOT 7
- Missing test runner context icon from gutter HOT 8
- Not working for .NET Core HOT 1
- Cannot use Resharper Test Session HOT 1
- Debug test randomly identifies the test as skip despite no xunit skip
- After 2016.2 Update, discovering xUnit Theory tests causes White Screen when selecting large blocks that need to be discovered HOT 1
- XUnit 2.1 Custom CategoryTraitAttribute is ignored in Unit Test Explorer - Group by HOT 2
- Resharper 2017.2 Can't support VS2015
- Theory test runs only once HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resharper-xunit.