.Net core unit tests not running in EAP 19
Answered
Loaded a simple .net core 1.1.1 solution (with csproj style projects) in Rider no problem. Unit test tab detects all my unit tests correctly but every time I run tests (either all or selected ones) it just displays "Build Successful", opens a new unit test session tab and all tests stay with "pending" forever. Nothing happens.
Manually running "dotnet test" on the test project works successfully.
Please sign in to leave a comment.
This is happening for me as well.
We would need the logs to sort this out https://rider-support.jetbrains.com/hc/en-us/articles/115000233004-How-to-enable-Unit-Tests-runner-s-logging-
Thanks in advance!
Update:
For dotnetcore projects attach here normal Rider logs from folder which is opened by Help-> Show Log in Files action.
It would be super nice, if you delete everything from this folder, restart Rider, reproduce the problem and then zip everything and attach.
Hello. I seem to have the same problem. I tried following the logging setup instructions, the R# Temp Logs points to /var/folders/y0/7kp9jcl93q7db2cs01nsx85w0000gn/T/JetLogs, however JetLogs directory does not exist, so I can't get any logs out of it.
When I am looking at unit test log console form the Internal panel, I don't see much that would look suspicious
21:13:37.005: [#b6f0] @@@ Pending @@@
21:13:37.007: [#b6f0] BuildStage started
21:13:37.007: [#b6f0] @@@ Building @@@
21:13:37.007: [#b6f0] Build policy: Automatic
21:13:39.188: [#b6f0] 1 projects built
21:13:39.188: [#b6f0] Trivi.Portal.PublicApi.Tests
21:13:39.188: [#b6f0] @@@ Build succeeded @@@
21:13:39.188: [#b6f0] BuildStage completed
21:13:39.188: [#b6f0] RefreshProjectPropertiesStage started
21:13:39.188: [#b6f0] RefreshProjectPropertiesStage completed
21:13:39.188: [#b6f0] DiscoveryStage started
21:13:39.188: [#b6f0] @@@ Exploring @@@
21:13:39.188: SC.openSession: b6f05c85-4cb3-410e-877e-f54ba97a5c3a (activate = true)
21:13:39.189: [#b6f0] Test exploration required for 1 projects
21:13:39.189: [#b6f0] Trivi.Portal.PublicApi.Tests
21:13:39.189: [#b6f0] DiscoveryStage completed
21:13:39.189: [#b6f0] BuildPipelineStage started
21:13:39.189: [#b6f0] BuildPipelineStage completed
21:13:39.189: [#b6f0] ApplyRulesStage started
21:13:39.189: [#b6f0] @@@ Starting @@@
21:13:39.191: [#b6f0] Got 1 elements (1 explicit) to run
21:13:39.191: [#b6f0] Marking 1 elements as Pending
21:13:39.192: [#b6f0] Marking elements as Pending completed
21:13:39.192: [#b6f0] Distributing 1 elements into runs
21:13:39.194: [#b6f0] Host Controller initialization started
21:13:39.194: [#b6f0] Host Controller: ProcessTaskRunnerHostController
21:13:39.194: [#b6f0] Host Controller initialization completed
21:13:39.195: [#b6f0] Distributing elements completed
21:13:39.195: [#b6f0] Created 1 unit-test runs
21:13:39.195: [#b6f0] ApplyRulesStage completed
21:13:39.195: [#b6f0] RunTestsStage started
21:13:39.195: [#b6f0] @@@ Running @@@
21:13:39.195: [#b6f0] Running up to 1 unit-test runs in parallel
21:13:39.195: [#b6f0] Run: 2e5819b7-c0a0-42a5-9e80-33f716b90ef0 - Started
21:13:39.195: [#b6f0] Provider: xUnit.net
Project: Trivi.Portal.PublicApi.Tests
Target Framework: .NETCoreApp,Version=v1.1
Strategy: JetBrains.ReSharper.UnitTestFramework.DotNetCore.DotNetVsTest.DotNetVsTestRunStrategy
Runtime Enviroment:
Platform Type: x64
Platform Version: v4_0
21:13:39.196: [#b6f0] Register handler for message type 'TestSession.Message', protocol version '1'
21:13:39.196: [#b6f0] Register handler for message type 'ProtocolVersion', protocol version '<unset>'
21:13:39.196: [#b6f0] Register handler for message type 'TestSession.Connected', protocol version '<unset>'
21:13:39.196: [#b6f0] Register handler for message type 'TestExecution.CustomTestHostLaunch', protocol version '1'
21:13:39.196: [#b6f0] Register handler for message type 'TestExecution.Completed', protocol version '1'
21:13:39.196: [#b6f0] Register handler for message type 'TestExecution.StatsChange', protocol version '1'
21:13:39.198: [#b6f0] Starting process: /usr/local/share/dotnet/dotnet vstest /port:60494
21:13:39.318: RM.resultUpdated(2 elements)
21:13:39.318: [#b6f0] Started process with pid 16879
21:13:39.759: [#b6f0] Processing message 'TestSession.Connected'
21:13:39.759: [#b6f0] Processed message 'TestSession.Connected'
21:13:39.765: [#b6f0] Processing message 'ProtocolVersion'
21:13:39.765: [#b6f0] Processed message 'ProtocolVersion'
After this is is just Pending forever, until I abort it.
Please join this request https://youtrack.jetbrains.com/issue/RIDER-5224