Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Unit Tests Failing in v5.3 #4948


User avatar
0
tcon created

I did a new test download of version 5.3. I restored NuGet Packages, built the application and it built fine. I ran the unit tests and a few tests keep failing. I haven't made any changes to the code, it's just a clean run from the download. I've included one of the error messages below. Any guidance will be appreciated.

Test Name:	TC.SuiteTestDemo.Tests.Editions.EditionAppService_Tests.Should_Create_Edition
Test FullName:	TC.SuiteTestDemo.Tests.Editions.EditionAppService_Tests.Should_Create_Edition
Test Source:	C:\source\SuiteTestDemo\src\Tests\TC.SuiteTestDemo.Tests\Editions\EditionAppService_Tests.cs : line 32
Test Outcome:	Failed
Test Duration:	0:00:04.93
*** Stack Trace Omitted ***
Result Message:	
AutoMapper.AutoMapperMappingException : Error mapping types.

Mapping types:
ImmutableList`1 -> List`1
System.Collections.Immutable.ImmutableList`1[[Abp.Application.Features.Feature, Abp, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null]] -> System.Collections.Generic.List`1[[TC.SuiteTestDemo.Editions.Dto.FlatFeatureDto, TC.SuiteTestDemo.Application, Version=5.3.0.0, Culture=neutral, PublicKeyToken=null]]
---- AutoMapper.AutoMapperMappingException : Error mapping types.

Mapping types:
Feature -> FlatFeatureDto
Abp.Application.Features.Feature -> TC.SuiteTestDemo.Editions.Dto.FlatFeatureDto

Type Map configuration:
Feature -> FlatFeatureDto
Abp.Application.Features.Feature -> TC.SuiteTestDemo.Editions.Dto.FlatFeatureDto

Property:
DisplayName
-------- System.NullReferenceException : Object reference not set to an instance of an object.

1 Answer(s)
  • User Avatar
    0
    alper created
    Support Team

    I've just downloaded a fresh copy and run all the tests out of the box. And there's no failing test.