@@ -234,6 +234,7 @@ private TestCase CreateTestCase(TestCaseDescriptor descriptor)
234234 var testCase = new TestCase (
235235 descriptor . FullyQualifiedName , descriptor . FullyQualifiedName , _executable , descriptor . DisplayName , "" , 0 ) ;
236236 testCase . Traits . AddRange ( GetFinalTraits ( descriptor . DisplayName , new List < Trait > ( ) ) ) ;
237+ testCase . Traits . Add ( new Trait ( nameof ( TestCaseDescriptor . TestType ) , descriptor . TestType . ToString ( ) ) ) ;
237238 return testCase ;
238239 }
239240
@@ -261,12 +262,15 @@ private TestCase CreateTestCase(TestCaseDescriptor descriptor, TestCaseLocation
261262 var testCase = new TestCase (
262263 descriptor . FullyQualifiedName , ns + descriptor . FullyQualifiedName , _executable , descriptor . DisplayName , location . Sourcefile , ( int ) location . Line ) ;
263264 testCase . Traits . AddRange ( GetFinalTraits ( descriptor . DisplayName , location . Traits ) ) ;
265+ testCase . Traits . Add ( new Trait ( nameof ( TestCaseDescriptor . TestType ) , descriptor . TestType . ToString ( ) ) ) ;
264266 return testCase ;
265267 }
266268
267- _logger . LogWarning ( String . Format ( Resources . LocationNotFoundError , descriptor . FullyQualifiedName ) ) ;
268- return new TestCase (
269+ var returnTest = new TestCase (
269270 descriptor . FullyQualifiedName , descriptor . FullyQualifiedName , _executable , descriptor . DisplayName , "" , 0 ) ;
271+ returnTest . Traits . Add ( new Trait ( nameof ( TestCaseDescriptor . TestType ) , descriptor . TestType . ToString ( ) ) ) ;
272+ _logger . LogWarning ( String . Format ( Resources . LocationNotFoundError , descriptor . FullyQualifiedName ) ) ;
273+ return returnTest ;
270274 }
271275
272276 internal static string GetTestSignatureNamespace ( string signature )
0 commit comments