@@ -115,7 +115,7 @@ void DiscoverTests<TVisitor>(IEnumerable<string> sources,
115115
116116 if ( configuration . DiagnosticMessagesOrDefault )
117117 logger . SendMessage ( TestMessageLevel . Informational ,
118- String . Format ( "[xUnit.net {0}] Discovery starting: {1} (name display = {2})" , stopwatch . Elapsed , fileName , discoveryOptions . GetMethodDisplay ( ) ) ) ;
118+ String . Format ( "[xUnit.net {0}] Discovery starting: {1} (name display = {2})" , stopwatch . Elapsed , fileName , discoveryOptions . GetMethodDisplayOrDefault ( ) ) ) ;
119119
120120 using ( var visitor = visitorFactory ( assemblyFileName , framework , discoveryOptions ) )
121121 {
@@ -294,12 +294,13 @@ void RunTestsInAssembly(IDiscoveryContext discoveryContext,
294294 return ;
295295
296296 var assemblyFileName = runInfo . AssemblyFileName ;
297+ var assemblyDisplayName = Path . GetFileNameWithoutExtension ( assemblyFileName ) ;
297298
298299 if ( runInfo . Configuration . DiagnosticMessagesOrDefault )
299300 lock ( stopwatch )
300301 frameworkHandle . SendMessage ( TestMessageLevel . Informational , String . Format ( "[xUnit.net {0}] Execution starting: {1} (method display = {2}, parallel test collections = {3}, max threads = {4})" ,
301302 stopwatch . Elapsed ,
302- Path . GetFileName ( assemblyFileName ) ,
303+ assemblyDisplayName ,
303304 runInfo . Configuration . MethodDisplayOrDefault ,
304305 runInfo . Configuration . ParallelizeTestCollectionsOrDefault ,
305306 runInfo . Configuration . MaxParallelThreadsOrDefault ) ) ;
@@ -312,7 +313,8 @@ void RunTestsInAssembly(IDiscoveryContext discoveryContext,
312313 assemblyFileName = Path . Combine ( Windows . ApplicationModel . Package . Current . InstalledLocation . Path , Path . GetFileName ( assemblyFileName ) ) ;
313314#endif
314315
315- var controller = new XunitFrontController ( assemblyFileName , configFileName : null , shadowCopy : true ) ;
316+ var diagnosticMessageVisitor = new DiagnosticMessageVisitor ( frameworkHandle , assemblyDisplayName , runInfo . Configuration . DiagnosticMessagesOrDefault ) ;
317+ var controller = new XunitFrontController ( assemblyFileName , configFileName : null , shadowCopy : true , diagnosticMessageSink : diagnosticMessageVisitor ) ;
316318
317319 lock ( toDispose )
318320 toDispose . Add ( controller ) ;
@@ -328,7 +330,7 @@ void RunTestsInAssembly(IDiscoveryContext discoveryContext,
328330
329331 if ( runInfo . Configuration . DiagnosticMessagesOrDefault )
330332 lock ( stopwatch )
331- frameworkHandle . SendMessage ( TestMessageLevel . Informational , String . Format ( "[xUnit.net {0}] Execution finished: {1}" , stopwatch . Elapsed , Path . GetFileName ( assemblyFileName ) ) ) ;
333+ frameworkHandle . SendMessage ( TestMessageLevel . Informational , String . Format ( "[xUnit.net {0}] Execution finished: {1}" , stopwatch . Elapsed , assemblyDisplayName ) ) ;
332334 }
333335
334336 ManualResetEvent RunTestsInAssemblyAsync ( IDiscoveryContext discoveryContext ,
0 commit comments