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

RSRP-469271: Some TestNames with periods in them do not display properly in the test runner UI for .NET Core projects (netcoreapp2.0)

$
0
0
Reporter Rian Stockbower (rianjs) Rian Stockbower (rianjs)
Created Apr 16, 2018 4:53:44 PM
Updated Apr 16, 2018 4:53:44 PM
Subsystem Unit Testing
Assignee Eugene Strizhok (Eugene.Strizhok)
Priority Normal
State Submitted
Type Bug
Fix version No Fix versions
Affected versions No Affected versions
Fixed In Version ReSharper Undefined
VsVersion All Versions

Some periods (but not all) appears to be treated like a namespace or category in ReSharper v 2017.3.5

This appears to be a .NET Core only behavior, as I recently converted this from regular framework, and had no such issues.

Test method:

public static IEnumerable<ITestCaseData> GetScheduleForResourcesAsync_ExceptionTestCases()
{
    yield return new TestCaseData(_id, DateTimeOffset.MinValue, DateTimeOffset.MaxValue)
        .SetName("Start = DateTimeOffset.MinValue, End = DateTimeOffset.MaxValue returns 400 BadRequest");
}

Here's the full csproj:

<Project Sdk="Microsoft.NET.Sdk" ToolsVersion="15.0">

  <PropertyGroup>
    <TargetFramework>netcoreapp2.0</TargetFramework>
  </PropertyGroup>

  <PropertyGroup>
   <GenerateAssemblyInfo>false</GenerateAssemblyInfo>
   <ApplicationIcon />
   <OutputType>Library</OutputType>
   <StartupObject />
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net462|AnyCPU'">
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <WarningsAsErrors></WarningsAsErrors>
    <NoWarn>1701;1702;1705;NU1605</NoWarn>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net462|AnyCPU'">
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <WarningsAsErrors></WarningsAsErrors>
    <NoWarn>1701;1702;1705;NU1605</NoWarn>
  </PropertyGroup> 

  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.6.1" />
    <PackageReference Include="Ical.Net" Version="4.0.6" />
    <PackageReference Include="Moq" Version="4.8.2" />
    <PackageReference Include="NUnit" Version="3.9.0" />
    <PackageReference Include="NUnit3TestAdapter" Version="3.9.0" />
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\CalendaringService\CalendaringService.csproj" />
  </ItemGroup>

</Project>

See attached screenshot for what the runner looks like.


Viewing all articles
Browse latest Browse all 106942

Trending Articles



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