Giter Club home page Giter Club logo

Comments (12)

citizenmatt avatar citizenmatt commented on August 16, 2024

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.

Grinderofl avatar Grinderofl commented on August 16, 2024

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.

citizenmatt avatar citizenmatt commented on August 16, 2024

@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.

somewhatabstract avatar somewhatabstract commented on August 16, 2024

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.

citizenmatt avatar citizenmatt commented on August 16, 2024

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.

somewhatabstract avatar somewhatabstract commented on August 16, 2024

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.

Sequenta avatar Sequenta commented on August 16, 2024

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.

Sequenta avatar Sequenta commented on August 16, 2024

Fixed by updating version of AutoFixture in app.config.

from resharper-xunit.

citizenmatt avatar citizenmatt commented on August 16, 2024

Glad it's working. If there are any other issues, please reopen.

from resharper-xunit.

daviddvora avatar daviddvora commented on August 16, 2024

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.

citizenmatt avatar citizenmatt commented on August 16, 2024

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.

daviddvora avatar daviddvora commented on August 16, 2024

Thanks

from resharper-xunit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.