Quantcast
Channel: YouTrackReSharper (RSRP) - Bug and Issue Tracker
Viewing all 106942 articles
Browse latest View live

RSRP-453491: An empty theory counts as a test in UTS tree, but not in a filter or in UTE

$
0
0
Reporter Alexandra Kuks (Asia.Rudenko) Alexandra Kuks (Asia.Rudenko)
Created Feb 1, 2016, 5:41:04 PM
Updated Aug 1, 2019, 10:20:52 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Open
Type Bug
Fix version 2019.2.1
Affected versions 2016.1
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
1. open the attached solution, build it, open Unit Test Explorer, group it by Projects and Namespaces - there's one project with 4 tests
2. select the project, click "Create New Session"
3. run all the tests in the session - root node shows 15 tests, 'All Tests' filter shows 14, and the root node in UTE shows 14. The 15th test is a theory from DataFromFile.cs.

RSRP-475579: All documents should be comitted, but some are dirty

$
0
0
Reporter Brian Dukes (bdukes) Brian Dukes (bdukes)
Created Mar 22, 2019, 7:58:50 PM
Updated Aug 1, 2019, 10:25:14 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Submitted
Type Exception
Fix version 2019.2
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

ReSharperPlatformVs16 Wave 191 Hive _d00cab67 — JetBrains ReSharper Ultimate 2019.1 EAP 1 Build 191.0.20190314.205056-eap01

JetBrains dotCover 2019.1 EAP 1 Build 2019.1.20190315.54011-eap01
JetBrains dotMemory 2019.1 EAP 1 Build 2019.1.20190315.54008-eap01
JetBrains dotTrace 2019.1 EAP 1 Build 2019.1.20190315.54022-eap01
JetBrains ReSharper 2019.1 EAP 1 Build 2019.1.20190315.53608-eap01

SubProducts.0 = JetBrains dotCover 2019.1 EAP 1 Build 2019.1.20190315.54011-eap01
SubProducts.1 = JetBrains dotTrace 2019.1 EAP 1 Build 2019.1.20190315.54022-eap01
SubProducts.2 = JetBrains ReSharper 2019.1 EAP 1 Build 2019.1.20190315.53608-eap01
SubProducts.3 = JetBrains dotMemory 2019.1 EAP 1 Build 2019.1.20190315.54008-eap01

All documents should be comitted, but some are dirty

--- EXCEPTION #1/2 [AssertionException]
Message = “All documents should be comitted, but some are dirty”
ExceptionPath = Root.InnerException
ClassName = JetBrains.Diagnostics.Assertion+AssertionException
Data.ThreadLocalDebugInfo = PsiChangeSearchDescriptorNotifier.RepresentItems
Data.ReentrancyGuard.ActionName = PsiChangeSearchDescriptorNotifier.RepresentItems
HResult = COR_E_EXCEPTION=80131500
Source = JetBrains.Platform.Util
StackTraceString = “
at JetBrains.Util.AssertionWithSensitiveData.Fail(String message, Pair2[] sensitiveData) at JetBrains.ReSharper.Psi.Files.PsiFiles.AssertAllDocumentAreCommitted(String customText) at JetBrains.ReSharper.Psi.DeclaredElementEnvoy1.GetValidDeclaredElementInstance()
at JetBrains.ReSharper.Psi.DeclaredElementEnvoy1.JetBrains.ReSharper.Psi.IDeclaredElementEnvoy.GetValidDeclaredElement() at JetBrains.ReSharper.UnitTestFramework.OccurrenceKinds.UnitTestOccurrenceKindProvider.CheckDeclaredElement(IDeclaredElementEnvoy envoy, UnitTestElementKind kind) at JetBrains.ReSharper.UnitTestFramework.OccurrenceKinds.UnitTestOccurrenceKindProvider.GetOccurrenceKinds(IOccurrence occurrence) at JetBrains.ReSharper.Feature.Services.Occurrences.OccurrenceKindManager.GetOccurrenceKindsCore(IOccurrence occurrence) at JetBrains.ReSharper.Feature.Services.Occurrences.OccurrenceKindManager.GetOccurrenceKinds(IOccurrence occurrence) at System.Linq.Enumerable.<SelectManyIterator>d__172.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source) at JetBrains.ReSharper.Feature.Services.Occurrences.OccurrencePresentationUtil.GetOccurrenceKindImage(IOccurrence occurrence, ISolution solution) at JetBrains.ReSharper.Feature.Services.Occurrences.OccurrencePresentationUtil.GetIcon(RangeOccurrence rangeOccurrence, OccurrencePresentationOptions options, ISolution solution) at JetBrains.ReSharper.Feature.Services.Tree.OccurrenceBrowserPresenter.PresentRangeOccurrence(IPresentableItem item, RangeOccurrence rangeOccurrence) at JetBrains.ReSharper.Feature.Services.Tree.OccurrenceBrowserPresenter.PresentTextualOccurrence(RangeOccurrence value, IPresentableItem item, TreeModelNode modelNode, PresentationState state) at JetBrains.Application.UI.Controls.TreeView.StructuredPresenter2.PresentationCallbackWrapper1.UpdateItem(Object value, TStructureElement structureElement, TPresentableItem item, PresentationState state) at JetBrains.Application.UI.Controls.TreeView.StructuredPresenter2.UpdateItem(Object value, TStructureElement structureElement, TPresentableItem item, PresentationState state)
at JetBrains.ReSharper.Feature.Services.Tree.TreeModelBrowserPresenter.UpdateItemWithReadlock(Object value, TreeModelNode structureElement, IPresentableItem item, PresentationState state)
at JetBrains.ReSharper.Feature.Services.Tree.TreeModelBrowserPresenter.UpdateItem(Object value, TreeModelNode structureElement, IPresentableItem item, PresentationState state)
at JetBrains.ReSharper.Feature.Services.Tree.OccurrenceBrowserPresenter.UpdateItem(Object value, TreeModelNode structureElement, IPresentableItem item, PresentationState state)
at JetBrains.Application.UI.Controls.TreeView.StructuredPresenter`2.UpdateItem(TStructureElement structureElement, TPresentableItem item, PresentationState state)
at JetBrains.ReSharper.Feature.Services.Tree.RichTextLiveTreeModel.UpdateItem(ITreeModelNode child)
at JetBrains.ReSharper.Feature.Services.Navigation.Descriptors.PsiChangeSearchDescriptorNotifier.<>c__DisplayClass10_2.<UpdatePresentation>b__1()
at JetBrains.ReSharper.Feature.Services.Navigation.Descriptors.PsiChangeSearchDescriptorNotifier.<>c__DisplayClass10_0.<UpdatePresentation>b__0()
at JetBrains.Application.Threading.IShellLocksEx.ExecuteWithReadLock(IShellLocks thіs, Action F)
at JetBrains.Application.Threading.IShellLocksEx.<>c__DisplayClass5_0.<ExecuteOrQueueReadLock>b__0()
at JetBrains.Threading.ReentrancyGuardEx.<>c__DisplayClass0_1.<Queue>b__3()
at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “All documents should be comitted, but some are dirty”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = “<there are no packages matching the criteria>”
Data.HostProductInfo = “JetBrains ReSharper Ultimate 2019.1 EAP 1 Build 191.0.20190314.205056-eap01”
Data.SubProducts.#0 = “JetBrains dotCover 2019.1 EAP 1 Build 2019.1.20190315.54011-eap01”
Data.SubProducts.#1 = “JetBrains dotTrace 2019.1 EAP 1 Build 2019.1.20190315.54022-eap01”
Data.SubProducts.#2 = “JetBrains ReSharper 2019.1 EAP 1 Build 2019.1.20190315.53608-eap01”
Data.SubProducts.#3 = “JetBrains dotMemory 2019.1 EAP 1 Build 2019.1.20190315.54008-eap01”
Data.SccRevisionEnv = “
Platform\Core\Shell:
git::refs/heads/191-eap1::7e88c041b05d199a60dc6e76e6d59f1daaf6757d

Platform\VisualStudio:
git::refs/heads/191-eap1

Data.VsVersion = 16.0.28714.193
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions()
at JetBrains.Threading.JetDispatcher.Closure.Execute()
at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
at JetBrains.Util.Concurrency.WinJetDispatcher.<>c__DisplayClass18_0.<BeginInvokeCore>b__0()
at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

RSRP-472743: "Access is denied" exception in the execution log when running .Net Core xUnit tests under coverage with "Advanced" shadow-copy setting enabled.

$
0
0
Reporter Fedor Buyvol-Kot (Fedor.Buyvol-Kot) Fedor Buyvol-Kot (Fedor.Buyvol-Kot)
Created Dec 15, 2018, 9:43:08 PM
Updated Aug 1, 2019, 10:26:25 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Bug
Fix version 2019.2.1
Affected versions 2018.3, 2019.1.3
Fixed In EAP Undefined
VsVersion VS 2017
Branch No branch

STR: Cover all xUnit tests from DotNet.VsTest sample.

It seems it doesn't affect coverage results.

RSRP-473039: Test classes using inheritance ultimately fail with "Inconclusive: Test not run"

$
0
0
Reporter Andrew Kernahan (andykernahan.1) Andrew Kernahan (andykernahan.1)
Created Nov 28, 2018, 4:10:52 PM
Updated Aug 1, 2019, 10:30:34 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Bug
Fix version 2019.2.1
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

To reproduce:

  1. Open Solution.
  2. Explorer -> right click solution -> Build Solution
  3. Explorer -> right click solution -> Run Unit Tests
  4. Unit Tests -> expand Add2 -> click on Verify test -> click on stack link in output pane
    Test now shown as "Unknown"
  5. Explorer -> right click solution -> Run Unit Tests
    Test now shown as "Inconclusive: Test not run" and log file link is shown in the output pane

The test remains shown as "Inconclusive: Test not run" until a "Rebuild Solution" is performed; the following have no effect:

  • "Run Unit Tests"
  • "Build Solution"
  • Any of the above after changing "Calculator.cs".

Environment

JetBrains Rider 2018.2.3
Build #RD-182.4231.496, built on September 13, 2018
Licensed to ####
Subscription is active until May 10, 2019
JRE: 1.8.0_152-release-1248-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0
> dotnet --info

.NET Core SDK (reflecting any global.json):
    Version:   2.1.402
    Commit:    3599f217f4

Runtime Environment:
    OS Name:     Windows
    OS Version:  10.0.16299
    OS Platform: Windows
    RID:         win10-x64
    Base Path:   C:\Program Files\dotnet\sdk\2.1.402\

Host (useful for support):
    Version: 2.1.4
    Commit:  85255dde3e

.NET Core SDKs installed:
    1.1.10 [C:\Program Files\dotnet\sdk]
    2.1.202 [C:\Program Files\dotnet\sdk]
    2.1.401 [C:\Program Files\dotnet\sdk]
    2.1.402 [C:\Program Files\dotnet\sdk]

.NET Core runtimes installed:
    Microsoft.AspNetCore.All 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
    Microsoft.AspNetCore.All 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
    Microsoft.AspNetCore.App 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    Microsoft.AspNetCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
    Microsoft.NETCore.App 1.0.12 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.NETCore.App 1.1.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.NETCore.App 2.1.3 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
    Microsoft.NETCore.App 2.1.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
> "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\MSBuild.exe" /version

Microsoft (R) Build Engine version 15.8.169+g1ccb72aefa for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

15.8.169.51996

RSRP-475165: Framework option doesn't show .Net Framework 4.8 although it is installed.

$
0
0
Reporter Fedor Buyvol-Kot (Fedor.Buyvol-Kot) Fedor Buyvol-Kot (Fedor.Buyvol-Kot)
Created Jun 21, 2019, 1:18:14 PM
Updated Aug 1, 2019, 10:31:57 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Submitted
Type Bug
Fix version 2019.3
Affected versions 2019.1.2
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

RSRP-475113: Unable to run MSTest v2 with MS Fakes in VS 2019 Enterprise RTM - SDK-based project files

$
0
0
Reporter Rene Riedinger (rene_r) Rene Riedinger (rene_r)
Created Jun 17, 2019, 1:55:36 PM
Updated Aug 1, 2019, 10:44:12 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Microsoft
Type Bug
Fix version Backlog
Affected versions 2019.1.2
Fixed In EAP Undefined
VsVersion VS 2019 Release (previous versions)
Branch No branch

@Eugene Strizhok this bug should have been fixed with (https://youtrack.jetbrains.com/issue/RSRP-474260), but it's still not working when you use sdk-based projects with .net 4.x (.net 472, net 4.6,...).
It's working when you use the old (fat) .csproj files (after this fix https://youtrack.jetbrains.com/issue/RSRP-474260).

Could you please provide a fix soon, I already submitted the inital bug (RSRP-474260) and I'm waiting for ages to work again with the r# test runner.

How to reproduce:

1.) Create/use a sdk-based project file for your test (e.q. net 4.72)
2.) Generate a fake from an assembly you need to "fake".
3.) If you use VS 2019 the generated fake assembly must be manually added as reference (seems to be a bug in VS 2019)
4.) Create a test
5.) Run the test with R# test runner --> test is red --> see the exact error below

Note: if you use NCrunch or the VS TestRunner the test is executed correctly.

Error:

Initialization method Upper.Core.Common.Test.Utilities.Web.HttpModuleResolvingHttpModuleBehaviour.Initialize threw exception. Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationException:

Failed to resolve profiler path from COR_PROFILER_PATH and COR_PROFILER environment variables.

TestCleanup method Upper.Core.Common.Test.Utilities.Web.HttpModuleResolvingHttpModuleBehaviour.Cleanup threw exception. System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.IntelliTraceInstrumentationProvider.ResolveProfilerPath()
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.IntelliTraceInstrumentationProvider.Initialize()
at Microsoft.QualityTools.Testing.Fakes.UnitTestIsolation.UnitTestIsolationRuntime.InitializeUnitTestIsolationInstrumentationProvider()
at Microsoft.QualityTools.Testing.Fakes.Shims.ShimRuntime.CreateContext()
at Microsoft.QualityTools.Testing.Fakes.ShimsContext.Create()
at Upper.Core.Common.Test.Utilities.Web.HttpModuleResolvingHttpModuleBehaviour.Initialize() in C:\Dev\Vie\CoreExtensions\Src\CE\v\3.12\Upper.Core.Common.Test\Web\HttpModuleResolvingHttpModuleBehaviour.cs:line 61

TestCleanup Stack Trace
at Upper.Core.Common.Test.Utilities.Web.HttpModuleResolvingHttpModuleBehaviour.Cleanup() in C:\Dev\Vie\CoreExtensions\Src\CE\v\3.12\Upper.Core.Common.Test\Web\HttpModuleResolvingHttpModuleBehaviour.cs:line 84

RSRP-474299: Floating status of a unit test after the cancellation of running

$
0
0
Reporter Alexander Petrovsky (apetrov2) Alexander Petrovsky (apetrov2)
Created Apr 12, 2019, 5:35:59 PM
Updated Aug 1, 2019, 10:45:13 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Bug
Fix version 2019.2.1
Affected versions 2019.2
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
  • Run some unit test (NUnit)
  • Press stop just after real running (when we can see the green progress before test node inside the UnitTestSession)

Result: sometimes we can get Aborted or Cancelled statuses

RSRP-474961: ReSharper / Rider test runner interferes with child processes of the test process (Console Windows popping on screen)

$
0
0
Reporter Fabien Barbier (GoldenCrystal) Fabien Barbier (GoldenCrystal)
Created Jun 5, 2019, 6:51:01 PM
Updated Aug 1, 2019, 10:46:15 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Bug
Fix version 2019.2.1
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

Hello,

I'd like to report the following bug:

Observed bug

Console Windows of subprocesses are opening on screen when running tests from R# test runner or Rider.

Context

In our team, we run a large suite of NUnit 3 tests using Selenium and ChromeDriver.
When launching tests with the VS Test runner, or from the command line, everything works as expected.
When launching tests from ReSharper or Rider test runner, a lot of chromedriver.exe console windows pop on the screen. (Huge hassle for members of our team who are using these test runners)

NB: I'm using chromedriver.exe as an example here. We can work around that specific case from Selenium which is able to start processes using CreateNoWindow = true. However, this also happens for other executables that are started during our tests, and for which we don't have as much control.

Possible cause

ReSharper is likely starting a test process using the DETACHED_PROCESS creation flag, which will interfere with the way processes interact with console windows.
See here for the list of possible flags: https://docs.microsoft.com/en-us/windows/desktop/procthread/process-creation-flags

Typically:
Process A starts process B using DETACHED_PROCESS.
Process B does not call AttachConsole or AllocConsole.
Process B starts process C without specific tweaks (no stream redirection, no console-related flags).
Process C is created with a new console Window

Investigation

This seemed related to the way R# started test processes, so I tried different console-related startup strategies to confirm that this behavior would indeed be triggered by a specific way to start processes.

Basic setup
Parent console application => Starts another instance of itself as a child process using strategy X => Starts an instance of ChromeDriver using Selenium (no special process creation options)

Process startup strategies

  • Default / Simple CreateProcessEx call
  • Start the process with no window (start with no console window attached) / CreateProcessEx using the flag CREATE_NO_WINDOW (Can be achieved with System.Diagnostics.Process.Start & CreateNoWindow = true too)
  • Start the process with its own console (don't inherit the console of the parent process, create a new console window) / CreateProcessEx using the flag CREATE_NEW_CONSOLE
  • Start the process as a detached process (don't inherit the console of the parent process, don't create a new console window) / CreateProcessEx using the flag DETACHED_PROCESS
  • Start the process with stream redirection / Use System.Diagnostics.Process.Start with UseShellExecute = false and RedirectStandard{Input,Output,Error} = true (which will call CreateProcessEx)

Expected result
No chromedriver.exe window pops up on the screen (What happens in VS Test Runner or when tests are run from command line)

Actual result
Only when the child process is started with DETACHED_PROCESS, the undesirable behavior is observed. (Which seems to suggest that it is what happens with ReSharper test runner)

Reproduction case

On a computer with Google Chrome installed, create a NUnit 3 test with the following code:

csharp
var options = new ChromeOptions();
options.AddArguments("headless", "disable-gpu"); // Start Chrome in headless mode because we don't want a Window to be displayed

using (var chromeDriver = new ChromeDriver(options))
{
    chromeDriver.Navigate().GoToUrl("about:blank");
    Thread.Sleep(10_000); // Make it observable
}

Required NuGet packages: Selenium.WebDriver, Selenium.WebDriver.ChromeDriver

When running the test with R# test runner, a chromedriver.exe Window will appear:
Screenshot of the reproduction case


RSRP-474538: Running many unit tests takes forever

$
0
0
Reporter Thorsten Sommer (mail.24) Thorsten Sommer (mail.24)
Created May 1, 2019, 5:13:38 PM
Updated Aug 1, 2019, 10:48:26 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Show-stopper
State Waiting for Info
Type Performance Problem
Fix version 2019.2.1
Affected versions 2019.1, 2018.3.4
Fixed In EAP Undefined
VsVersion VS 2019 Release (previous versions), VS 2017
Branch No branch

I have a C# solution with more than 58000 unit tests (NUnit). Starting and running these tests with Visual Studio is fine. All tests get completed within 2 seconds (20 seconds with overhead). When I start the same >58k tests with ReShaper, I have to restart Visual Studio, because the Test Session hangs forever. On one day I started the session and then left for several hours. After about 3 hours the tests were completed. However, it was not possible to display the test coverage.

I would like to use ReShaper's unit test implementation -- but this performance is not acceptable.

Unfortunately, the C# solution is not open source. Thus, I cannot attach a Github/Gitlab link for testing.

RSRP-474886: MSTest: DataRows are not displayed correctly

$
0
0
Reporter Oliver Ehrenmüller (greuelpirat) Oliver Ehrenmüller (greuelpirat)
Created May 29, 2019, 8:17:05 AM
Updated Aug 1, 2019, 10:55:40 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Submitted
Type Bug
Fix version 2019.2.1
Affected versions 2019.1.1
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

following unit test

[DataRow(null, null, true)]
[DataRow(null, "bar", false)]
[DataRow("foo", null, false)]
[DataRow("foo", "bar", false)]
[DataRow("foo", "foo", true)]
[TestMethod]
public void TestSequenceEqualNullable(object first, object second, bool equals)
{
	IEnumerable<object> enumerable1 = first == null ? null : new List<object> { first };
	IEnumerable<object> enumerable2 = second == null ? null : new List<object> { second };

	Assert.AreEqual(equals, enumerable1.SequenceEqualNullable(enumerable2));
}

results in Unit-Test View:

Version: RD-191.6733.985
Timezone: Europe/Berlin
Evaluation: false
Environment: RD-191.6733.985, JRE 1.8.0_202-release-1483-b49x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1080, 1920x1080
Logs: https://dotnet-ea.services.jetbrains.com/files/so-attachments/6fcd2a0f-c34e-4d3d-8efa-6789f9d6ee28/rider-logs-attachment.tar.xz

RSRP-474866: Exception when trying to launch unit tests in 2019.2 dev builds

$
0
0
Reporter Eugene Auduchinok (Eugene.Auduchinok) Eugene Auduchinok (Eugene.Auduchinok)
Created May 27, 2019, 7:32:34 PM
Updated Aug 1, 2019, 11:00:31 PM
Resolved Aug 1, 2019, 11:00:30 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Obsolete
Type Exception
Fix version 2019.2
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

JetBrains Rider 2019.2 Build RD-192.2370.418 Date 2019-05-27T05:29:28.212+0000

--- EXCEPTION #1/2 [KeyNotFoundException]
Message = “The given key was not present in the dictionary”
ExceptionPath = Root.InnerException
ClassName = System.Collections.Generic.KeyNotFoundException
Data.ThreadLocalDebugInfo = “
RdSignal<Unit>: MainProtocol.ActionsModel.execute.$.handshake.$.result
-> RdProperty<ActionExecuteSyncHandshake>: MainProtocol.ActionsModel.execute.$.handshake
-> RdProperty<ActionExecuteRequest>: MainProtocol.ActionsModel.execute
-> RdDispatcher::FlushAll

HResult = COR_E_KEYNOTFOUND=80131577
Source = JetBrains.Platform.Core
StackTraceString = “
at JetBrains.Util.DataStructures.CompactMapBase4.get_Item(TKey key) at JetBrains.ReSharper.UnitTestFramework.Caches.UnitTestElementIdToIdentityMap.GetBy(Int32 id) at System.Linq.Enumerable.<>c__DisplayClass7_03.<CombineSelectors>b__0(TSource x)
at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext() at System.Collections.Generic.JetHashSet1..ctor(IEnumerable1 enumerable, IEqualityComparer1 comparer)
at System.Linq.EnumerableExJet.ToJetHashSet[TSource](IEnumerable1 source) at JetBrains.ReSharper.UnitTestFramework.Caches.UnitTestElementCache.CachedElements.GetOrQueryElements(UnitTestElementIdToIdentityMap uteIdToIdentityMap, Lazy1 repository)
at JetBrains.ReSharper.UnitTestFramework.Caches.OneToOneLevelDbCache1.GetBy(TKey key) at JetBrains.ReSharper.UnitTestFramework.Criteria.ProjectCriterion.EvaluationOptimization.EvaluateCriterion(ProjectCriterion criterion) at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider1.Evaluator.WhereEvaluator.Visit(Expression node)
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider1.Evaluator.WhereEvaluator.EvaluateAsReadOnlySet(Expression expr) at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider1.Evaluator.VisitMethodCall(MethodCallExpression node)
at JetBrains.ReSharper.UnitTestFramework.QueryProvider.QueryProvider1.Execute(Expression expr) at JetBrains.ReSharper.UnitTestFramework.UnitTestElementRepository.LockingQueryProvider.Execute(Expression expr) at JetBrains.ReSharper.UnitTestFramework.UnitTestElementRepository.LockingQuery1.GetEnumerator()
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable1 source) at JetBrains.ReSharper.UnitTestFramework.UnitTestingFacadeFluentExtensions.RunClause.UsingClause.GetElementToFocusOn() at JetBrains.ReSharper.UnitTestFramework.UnitTestingFacadeFluentExtensions.RunClause.UsingClause.BuildAndRunIn(IUnitTestSession session) at JetBrains.ReSharper.UnitTestFramework.UnitTestingFacadeFluentExtensions.InToClause.CurrentOrNewSession(String name) at JetBrains.ReSharper.UnitTestFramework.Actions.UnitTestRunBaseAction.Execute(IDataContext context, DelegateExecute nextExecute) at JetBrains.Application.UI.ActionsRevised.Handlers.ExecutableActionEvaluator.Execute(IAction action, IReadOnlyCollection1 allActions, IDataContext dataContext)
at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.ExecuteWithoutRequirements()
at JetBrains.ReSharper.Host.Features.Actions.ActionExecution.<>c__DisplayClass14_1.<TryExecuteWithRequirements>b__1(Unit result)
at JetBrains.Collections.Viewable.Signal`1.Fire(T value)

--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “The given key was not present in the dictionary”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
at JetBrains.Collections.Viewable.Signal1.Fire(T value) at JetBrains.Rd.Impl.RdSignal1.OnWireReceived(UnsafeReader reader)
at JetBrains.Rd.Impl.MessageBroker.Execute(IRdReactive reactive, Byte[] msg)
at JetBrains.Rd.Impl.MessageBroker.<>c__DisplayClass7_0.<Invoke>b__0()
at JetBrains.Platform.RdFramework.Impl.RdDispatcher.RunWhile(Func1 condition, Boolean pumpJetDispatcher) at JetBrains.ReSharper.Host.Features.Actions.ActionExecution.<>c__DisplayClass14_0.<TryExecuteWithRequirements>b__0(Lifetime handshakeLifetime, ActionExecuteSyncHandshake handshake) at JetBrains.Collections.Viewable.ReactiveEx.<>c__DisplayClass7_01.<ViewNotNull>b__0(Lifetime lf, T v)
at JetBrains.Collections.Viewable.ViewableProperty1.Advise(Lifetime lifetime, Action1 handler)
at JetBrains.Rd.Impl.RdProperty1.Advise(Lifetime lifetime, Action1 handler)
at JetBrains.Collections.Viewable.ReactiveEx.View[T](IReadonlyProperty1 me, Lifetime lifetime, Action2 handler)
at JetBrains.Collections.Viewable.ReactiveEx.ViewNotNull[T](IReadonlyProperty1 me, Lifetime lifetime, Action2 handler)
at JetBrains.ReSharper.Host.Features.Actions.ActionExecution.TryExecuteWithRequirements(Lifetime attemptToExecuteLifetime, EvaluatedAction evaluatedAction)
at JetBrains.ReSharper.Host.Features.Actions.ActionExecution.<>c__DisplayClass13_1.<TryExecute>b__2()
at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.<>c__DisplayClass21_1.<PrepareRequirementsAsync>b__0()
at JetBrains.Application.UI.ActionsRevised.Handlers.EvaluatedAction.PrepareRequirementsAsync(OuterLifetime lifetime, Func1 executeWhenRequirementsReady, Action1 failWith)
at JetBrains.ReSharper.Host.Features.Actions.ActionExecution.TryExecute()
at JetBrains.ReSharper.Host.Features.Actions.RiderActions.<.ctor>b__24_0(Lifetime actionExecuteLifetime, ActionExecuteRequest request)
at JetBrains.Collections.Viewable.ReactiveEx.<>c__DisplayClass7_01.<ViewNotNull>b__0(Lifetime lf, T v) at JetBrains.Collections.Viewable.Signal1.Fire(T value)
at JetBrains.Collections.Viewable.ViewableProperty1.set_Value(T value) at JetBrains.Rd.Impl.RdProperty1.OnWireReceived(UnsafeReader reader)
at JetBrains.Rd.Impl.MessageBroker.Execute(IRdReactive reactive, Byte[] msg)
at JetBrains.Rd.Impl.MessageBroker.<>c__DisplayClass7_0.<Invoke>b__0()
at JetBrains.Platform.RdFramework.Impl.RdDispatcher.FlushAll()
at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
at JetBrains.Threading.ReentrancyGuard.ExecutePendingActions()
at JetBrains.Threading.JetDispatcher.Closure.Execute()
at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
at JetBrains.Interop.WinApi.User32Dll.DispatchMessageW(MSG* lpmsg)
at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.InternalPumpMessagesOnce()
at JetBrains.Util.Concurrency.WinJetDispatcher.WinJetDispatcherStaticMethods.JetBrains.Util.Concurrency.IJetDispatcherStaticMethods.Run()
at JetBrains.ReSharper.Host.Product.RiderMain.Main(Lifetime lifetime, IRiderSettings settings, ILogger logger, ProtocolComponent protocol, RdShellModel shellModel, ApplicationShutdownRequests shutdownRequests)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at JetBrains.Application.Environment.RunsPublicStaticIntMain.<>c__DisplayClass0_0.<.ctor>b__0()
at JetBrains.Util.Logging.Logger.Catch(Action action)
at JetBrains.Threading.JetDispatcher.Closure.Execute()
at JetBrains.Util.Concurrency.WinJetDispatcher.ProcessQueue(Int32 nMinBucket)
at System.Windows.Threading.DispatcherOperation.InvokeDelegateCore()
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at JetBrains.Application.Environment.IJetHostEx.<>c__DisplayClass2_0.<RunHostMessageLoop>b__0(Lifetime lifetime)
at JetBrains.Lifetimes.Lifetime.Using(Action1 action) at JetBrains.Application.Environment.IJetHostEx.RunHostMessageLoop(IComponentContainer containerEnv) at JetBrains.Application.Environment.HostParameters.JetHostParametersCaller.RunMainLoop(ComponentContainer containerEnv) at JetBrains.Application.Environment.JetEnvironment.InternalRun(JetHostParametersCaller host, ComponentContainer containerEnv) at JetBrains.Application.Environment.JetEnvironment.CreateAndRun(Full hostparams) at JetBrains.ReSharper.Host.Product.RiderBackendProgram.MainX(Assembly assembly, HostInfo hostInfo, String[] args) at JetBrains.ReSharper.Host.Product.RiderBackendProgram.<>c.<Main>b__0_0(Lifetime lifetime) at JetBrains.Lifetimes.Lifetime.Using[T](Func2 action)
at JetBrains.ReSharper.Host.Product.RiderBackendProgram.Main()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at JetBrains.Launcher.Msil.LauncherManagedCore.JetBrains.Launcher.Msil.ILauncherManagedCore.InvokeManagedMethod(String sAssemblyName, String sAssemblyFile, String sClassName, String sMethodName, Int32& phrExitCode, String& bsFailureMessageShort, String& bsFailureMessageLong)

last.action = RiderUnitTestRunContextTwAction

app.eap = true
app.internal = false
app.build = RD-192.2370.418
app.version.major = 2019
app.version.minor = 2
app.build.date = 2019-05-27T05:29:28.212+0000
app.build.date.release = 2019-04-25T00:00:28.212+0000
app.build.date.release = 2019-04-25T00:00:28.212+0000
app.compilation.timestamp = null
app.product.code = RD

os.name = Windows 10
java.version = 1.8.0-internal
java.vm.vendor = JetBrains s.r.o

UIUtil.isRetina = false
JBUI.isHiDPI() = false
ImageScaleFactor = 1

RSRP-472721: NUnitFIleExplorer takes a lot of time iterating over children of text fixtures

$
0
0
Reporter Ivan Serduk (IvanSerduk) Ivan Serduk (IvanSerduk)
Created Dec 13, 2018, 5:37:47 PM
Updated Aug 1, 2019, 11:02:59 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Bug
Fix version 2019.2.1
Affected versions 2018.3
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
Open CSharpHIghlightingTest which have over 2000 tests
Result: NunitFIleExplorer.ProcessBeforeInterior takes about 2 seconds looking for "NUnitGenericTestFixtureElement" in fixture's children

100.00% Execute • 3,806 ms • JetBrains.ReSharper.UnitTestFramework.Highlighting.UnitTestDaemonProcess.Execute(Action)
98.44% Explore • 3,747 ms • JetBrains.ReSharper.UnitTestFramework.UnitTestFileExplorer.Explore(IFile, IDocument, Func, Action)
95.22% ProcessFile • 3,624 ms • JetBrains.ReSharper.UnitTestProvider.nUnit.v26.NUnitElementsSource.ProcessFile(IFile, IUnitTestElementsObserver, Func)
95.22% ProcessDescendants • 3,624 ms • JetBrains.ReSharper.Psi.RecursiveElementProcessorExtensions.ProcessDescendants(ITreeNode, IRecursiveElementProcessor)
95.22% ProcessBeforeInterior • 3,624 ms • JetBrains.ReSharper.UnitTestProvider.nUnit.v26.NUnitFileExplorer.ProcessBeforeInterior(ITreeNode)
►48.29% Any • 1,838 ms • System.Linq.Enumerable.Any(IEnumerable, Func)
►11.11% GetOrCreateTest • 423 ms • JetBrains.ReSharper.UnitTestProvider.nUnit.v26.NUnitElementFactory.GetOrCreateTest(String, IProject, TargetFrameworkId, NUnitTestFixtureElement, IClrTypeName, String, IEnumerable, UnitTestElementCategorySource, Action)
►9.20% IsTestMethod • 350 ms • JetBrains.ReSharper.UnitTestProvider.nUnit.v26.NUnitFileExplorer.IsTestMethod(ITypeMember, UnitTestAttributeCache, IProject)
►6.95% CreateTestElement • 265 ms • JetBrains.ReSharper.UnitTestProvider.nUnit.v26.NUnitFileExplorer.CreateTestElement(ITypeMember, IFunction, NUnitTestElement, NUnitTestFixtureElement)
►6.58% CollectCategories • 250 ms • JetBrains.ReSharper.UnitTestProvider.nUnit.v26.NUnitFileExplorer.CollectCategories(IDeclaredElement)
►2.85% get_DeclaredElement • 108 ms • JetBrains.ReSharper.Psi.CSharp.Impl.Tree.MethodDeclarationStub.get_DeclaredElement
►2.83% ProcessRegularFixture • 108 ms • JetBrains.ReSharper.UnitTestProvider.nUnit.v26.NUnitFileExplorer.ProcessRegularFixture(ITypeElement, IAttributeInstance)
►1.67% GetClrName • 63 ms • JetBrains.ReSharper.Psi.ExtensionsAPI.Caches2.TypeElement.GetClrName
►1.52% get_DeclaredElement • 58 ms • JetBrains.ReSharper.Psi.CSharp.Impl.Tree.ProperTypeMemberDeclarationBase.get_DeclaredElement
1.01% ToList • 39 ms • System.Linq.Enumerable.ToList(IEnumerable)
►0.78% OnUnitTestElementDisposition • 30 ms • JetBrains.ReSharper.UnitTestFramework.UnitTestElementObserver.OnUnitTestElementDisposition(UnitTestElementDisposition)
►0.55% GetNameDocumentRange • 21 ms • JetBrains.ReSharper.Psi.Tree.DeclarationExtensions.GetNameDocumentRange(IDeclaration)
►0.42% GetPersistent • 16 ms • JetBrains.Metadata.Reader.Impl.ClrTypeNameBase.GetPersistent
0.37% Equals • 14 ms • JetBrains.Metadata.Reader.Impl.ClrTypeNameBase.Equals(Object)
►2.10% ToSourceFile • 80 ms • JetBrains.ReSharper.Psi.PsiSourceFileExtensions.ToSourceFile(IProjectFile)
►1.12% ToDictionary • 43 ms • System.Linq.Enumerable.ToDictionary(IEnumerable, Func)
►1.56% <RunStage>b__1 • 60 ms • JetBrains.ReSharper.Feature.Services.Daemon.DaemonProcessBase+<>c__DisplayClass54_2.<RunStage>b__1(DaemonStageResult)

RSRP-472546: NUnit: Single quote in test's parameters are not escaped

$
0
0
Reporter Eugene Strizhok (Eugene.Strizhok) Eugene Strizhok (Eugene.Strizhok)
Created Dec 3, 2018, 1:19:42 PM
Updated Aug 1, 2019, 11:03:46 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Bug
Fix version 2019.2.1
Affected versions 2018.2.3
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
Project flavor: .netcore
Target Framework: netcoreapp2.0
Test Framework: NUnit 3.10.1
Test Adapter: NUnit3TestAdapter 3.10.0

Single quote in test's parameters are not escaped by source file discovery, causing such tests to have different ids when compared to test discovered by test adapter

RSRP-475122: UI/UX improvements for Unit Tests Explorer/Runner

$
0
0
Reporter Fedor Buyvol-Kot (Fedor.Buyvol-Kot) Fedor Buyvol-Kot (Fedor.Buyvol-Kot)
Created Jun 18, 2019, 7:29:12 PM
Updated Aug 1, 2019, 11:10:31 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Improvement
Fix version No Fix versions
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

RSRP-459170: "Edit" button in MSTest options is always greyed out

$
0
0
Reporter Konstantin Katsnelson (Konstantin.Katsnelson) Konstantin Katsnelson (Konstantin.Katsnelson)
Created Jun 8, 2016, 10:49:31 PM
Updated Aug 1, 2019, 11:10:31 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Submitted
Type Bug
Fix version 2019.3
Affected versions 2017.3
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

RSRP-473092: Enabling the Server GC for Unit Tests

$
0
0
Reporter Julia Vaseva (Julia.Vaseva) Julia Vaseva (Julia.Vaseva)
Created Jan 21, 2019, 7:24:49 PM
Updated Aug 1, 2019, 11:11:56 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Critical
State Submitted
Type Bug
Fix version Backlog
Affected versions 2018.3.1, 2018.3.2
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

When I start unit test from my project on 4.7.2 .netframework i have GCSettings.IsServerGC == false
<runtime>
<gcServer enabled="true"/>
</runtime>
in App.config for that test project. Is it possible to run tests from Rider with server gc enabled?

RSRP-472276: Exception occurs in ReSharper test runner if run tests under DMU when only single .dll is referenced and dotMemoryUnit.exe file doesn't exist (.NET Core project only)

$
0
0
Reporter Anna Guseva (Anna.Guseva) Anna Guseva (Anna.Guseva)
Created Sep 3, 2018, 6:59:45 PM
Updated Aug 1, 2019, 11:14:02 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Major
State Submitted
Type Bug
Fix version 2019.2.1
Affected versions 2018.3
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
Summary: Transition failed: Transition from state <v1.HostBinding> on event <remote::1.TestExecution.CustomTestHostLaunch>. Cause: System.ApplicationException:


Description:
ReSharperPlatformVs15 Wave 183 Hive _7e204d66 ? JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180902.145811-eap01d
JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180902.150929-eap01d
Transition failed: Transition from state <v1.HostBinding> on event <remote::1.TestExecution.CustomTestHostLaunch>. Cause: System.ApplicationException: dotMemoryUnit package is not supported at JetBrains.dotMemoryUnit.Interop.Ide.DotMemoryUnitDetector.GetServerStartInfo(DotMemoryUnitTestRuntimeInfo runtimeInfo) at JetBrains.ReSharper.UnitTestRunner.dotMemoryUnit.Host.DotMemoryUnitTaskRunnerHostController.Prepare(IUnitTestRun run, FileSystemPath runnerPath, String runnerCommandLineArgs, FileSystemPath workingDir) at JetBrains.ReSharper.UnitTestRunner.dotMemoryUnit.Host.DotMemoryUnitTaskRunnerHostController.StartProcess(ProcessStartInfo startInfo, IUnitTestRun run, ILogger logger) at JetBrains.ReSharper.UnitTestFramework.Launch.UnitTestLaunch.HostControllerWithLogging.StartProcess(ProcessStartInfo startInfo, IUnitTestRun run, ILogger logger) at JetBrains.ReSharper.UnitTestFramework.DotNetCore.DotNetVsTest.DotNetVsTestExecution.OnCustomTestHostLaunch(TestProcessStartInfoPayload payload) at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentActionHolder1.Execute(Object argument) at Appccelerate.StateMachine.Machine.Transitions.Transition2.PerformActions(ITransitionContext2 context)
--- EXCEPTION #1/1 [LoggerException]
Message = ?
Transition failed: Transition from state <v1.HostBinding> on event <remote::1.TestExecution.CustomTestHostLaunch>.
Cause: System.ApplicationException: dotMemoryUnit package is not supported
at JetBrains.dotMemoryUnit.Interop.Ide.DotMemoryUnitDetector.GetServerStartInfo(DotMemoryUnitTestRuntimeInfo runtimeInfo)
at JetBrains.ReSharper.UnitTestRunner.dotMemoryUnit.Host.DotMemoryUnitTaskRunnerHostController.Prepare(IUnitTestRun run, FileSystemPath runnerPath, String runnerCommandLineArgs, FileSystemPath workingDir)
at JetBrains.ReSharper.UnitTestRunner.dotMemoryUnit.Host.DotMemoryUnitTaskRunnerHostController.StartProcess(ProcessStartInfo startInfo, IUnitTestRun run, ILogger logger)
at JetBrains.ReSharper.UnitTestFramework.Launch.UnitTestLaunch.HostControllerWithLogging.StartProcess(ProcessStartInfo startInfo, IUnitTestRun run, ILogger logger)
at JetBrains.ReSharper.UnitTestFramework.DotNetCore.DotNetVsTest.DotNetVsTestExecution.OnCustomTestHostLaunch(TestProcessStartInfoPayload payload)
at Appccelerate.StateMachine.Machine.ActionHolders.ArgumentActionHolder
1.Execute(Object argument)
 at Appccelerate.StateMachine.Machine.Transitions.Transition`2.PerformActions(ITransitionContext`2 context)
?
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
Data.ManagedThreadName = <NULL>
Data.SccRevisionShell = ?<there are no packages matching the criteria>?
Data.HostProductInfo = ?JetBrains ReSharper Ultimate 2018.3 EAP 1 D Build 183.0.20180902.145811-eap01d?
Data.SubProducts.#0 = ?JetBrains ReSharper 2018.3 EAP 1 D Build 2018.3.20180902.150929-eap01d?
Data.SccRevisionEnv = ?
Platform\Core\Shell:
    git::refs/heads/183-sm-DMRY-5356::03521de039e9a7a72d5bb20c83a884d17ade8223


Platform\VisualStudio:
    git::refs/heads/183-sm-DMRY-5356
?
Data.VsVersion = 15.8.28010.0
HResult = COR_E_APPLICATION=80131600
StackTraceString = ?
 at JetBrains.ReSharper.UnitTestFramework.DotNetCore.DotNetVsTest.DotNetVsTestProtocol.<.ctor>b__22_9(Object sender, TransitionExceptionEventArgs`2 args)
 at JetBrains.ReSharper.UnitTestFramework.DotNetCore.DotNetVsTest.DotNetVsTestProtocol.<.ctor>b__22_9(Object sender, TransitionExceptionEventArgs`2 args)
 at Appccelerate.StateMachine.Machine.StateMachine`2.RaiseEvent[T](EventHandler`1 eventHandler, T arguments, ITransitionContext`2 context, Boolean raiseEventOnException)
 at Appccelerate.StateMachine.Machine.StateMachine`2.OnExceptionThrown(ITransitionContext`2 context, Exception exception)
 at Appccelerate.StateMachine.Machine.Contexts.TransitionContext`2.OnExceptionThrown(Exception exception)
 at Appccelerate.StateMachine.Machine.Transitions.Transition`2.HandleException(Exception exception, ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.Transitions.Transition`2.PerformActions(ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.Transitions.Transition`2.Fire(IState`2 source, IState`2 target, ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.Transitions.Transition`2.Fire(ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.States.State`2.Fire(ITransitionContext`2 context)
 at Appccelerate.StateMachine.Machine.StateMachine`2.Fire(TEvent eventId, Object eventArgument)
 at Appccelerate.StateMachine.ActiveStateMachine`2.ProcessEventQueue(CancellationToken cancellationToken)
 at Appccelerate.StateMachine.ActiveStateMachine`2.<Start>b__32_0()
 at System.Threading.Tasks.Task.InnerInvoke()
 at System.Threading.Tasks.Task.Execute()
 at System.Threading.Tasks.Task.ExecutionContextCallback(Object obj)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
 at System.Threading.Tasks.Task.ExecuteEntry(Boolean bPreventDoubleExecution)
 at System.Threading.Tasks.ThreadPoolTaskScheduler.LongRunningThreadWork(Object obj)
 at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
 at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
 at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
 at System.Threading.ThreadHelper.ThreadStart(Object obj)

RSRP-462552: "multiple enumeration" possible improvement

$
0
0
Reporter Olga Rodygina (olgarodygina) Olga Rodygina (olgarodygina)
Created Jan 13, 2017, 4:08:13 PM
Updated Aug 1, 2019, 11:16:11 PM
Subsystem Refactorings
Assignee Alisa Afonina (alisa.afonina)
Priority Normal
State Submitted
Type Feature
Fix version Backlog
Affected versions 2019.1
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
A possible improvement! When correcting "multiple enumeration", you use IList<T>, while IReadonlyCollection<T> is enough. We want the smallest possible divergence from IEnumerable<T>, while avoiding multiple deferred execution. IReadonlyCollection<T> is precisely that, by its Count property, which is its only difference from IEnumerable<T>.

Also, assigning to a different variable should not be necessary.

The improved refactor would look as follows:

// Avoid multiple enumeration 
myParam = myParam as IReadOnlyCollection<string> ?? myParam.ToList();

RSRP-474146: Preprocessor directive that spans entire file gets moved on code reformat

$
0
0
Reporter Bart Koelman (bkoelman) Bart Koelman (bkoelman)
Created Apr 3, 2019, 12:09:44 AM
Updated Aug 1, 2019, 11:18:23 PM
Subsystem Code Style - Cleanup
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Critical
State Fixed In Branch
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch

Found this bug in Resharper 2019.1 EAP4 running in VS Community 2019.
Previous versions of Resharper (running in VS2017 at the time) did not have this bug.

This is breaking the build, as some namespace imports are invalid for the specified target framework.

Before code cleanup:

#if !NETCOREAPP1_1
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using JetBrains.Annotations;
using TestableFileSystem.Interfaces;
using TestableFileSystem.Utilities;

namespace TestableFileSystem.Fakes.Tests
{
    internal sealed class FileSystemWatcherEventListener : IDisposable
    {
        // ...
    }
}
#endif

After code cleanup:

using System;
using System.Collections.Generic;
using System.IO;
using JetBrains.Annotations;
using TestableFileSystem.Interfaces;
using TestableFileSystem.Utilities;
#if !NETCOREAPP1_1
using System.Linq;

namespace TestableFileSystem.Fakes.Tests
{
    internal sealed class FileSystemWatcherEventListener : IDisposable
    {
        // ...
    }
}
#endif

RSRP-475246: Code cleanup failes if pragma warning and comment on the same line in the ternary operator

$
0
0
Reporter Maria Pleskunina (Maria.Pleskunina) Maria Pleskunina (Maria.Pleskunina)
Created Jul 1, 2019, 3:38:42 PM
Updated Aug 1, 2019, 11:18:29 PM
Subsystem Code Style - Cleanup
Assignee Andrey Dyatlov (Andrey.Dyatlov)
Priority Normal
State Fixed In Branch
Type Bug
Fix version No Fix versions
Affected versions 2019.1.2
Fixed In EAP Undefined
VsVersion All Versions
Branch No branch
Before the cleanup code:

public class Ping
{
// Thread safety:
private static IPAddress GetAddressSnapshot(IPAddress address)
{
var a = address.AddressFamily == AddressFamily.InterNetwork
?
#pragma warning disable CS0618 // IPAddress.Address is obsoleted, but it's the most efficient way to get the Int32 IPv4 address
new IPAddress(address.Address)
:
#pragma warning restore CS0618
new IPAddress(address.GetAddressBytes(), address.ScopeId);
return a;
}
private void Finish()
{
}
}


After cleanup code:

public class Ping
{
// Thread safety:
private static IPAddress GetAddressSnapshot(IPAddress address)
{
var a = address.AddressFamily == AddressFamily.InterNetwork
?
;
return a;
}
#pragma warning disable CS0618 // IPAddress.Address is obsoleted, but it's the most efficient way to get the Int32 IPv4 address
new IPAddress(address.Address)
:
#pragma warning restore CS0618
new IPAddress(address.GetAddressBytes(), address.ScopeId)
}
Viewing all 106942 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>