@@ -276,7 +276,7 @@ public async Task ListAllAsync(string selector, IAnsiConsole console)
276
276
}
277
277
}
278
278
279
- public async Task RunAllAsync ( string selector )
279
+ public async Task RunAllAsync ( string selector , IAnsiConsole console )
280
280
{
281
281
TestSession testSession = new TestSession ( this . sessionTemplate , this . targetVersion . Version . ToString ( ) ) ;
282
282
List < Persistence . Core . Models . TestResult > testResults = new List < Persistence . Core . Models . TestResult > ( ) ;
@@ -288,13 +288,16 @@ public async Task RunAllAsync(string selector)
288
288
await this . testSelector . Initialize ( selector ) ;
289
289
await this . testRunner . SetUpEnvironment ( ) ;
290
290
291
+ console . MarkupLine ( $ "[blue]{ this . automationProject . Name } - { this . targetVersion } [/]") ;
291
292
foreach ( var testFixture in this . availableFixtures )
292
293
{
293
- if ( testFixture . IsMuted )
294
- {
294
+ console . MarkupLine ( $ " - [cyan3]{ testFixture . DisplayName } [/]") ;
295
+
296
+ if ( testFixture . IsMuted )
297
+ {
295
298
continue ;
296
299
}
297
-
300
+
298
301
var fixtureFiles = this . projectFileSystem . GetTestFixtureFiles ( testFixture ) ;
299
302
testFixture . TestFixtureEntity = this . Load < Entity > ( fixtureFiles . ProcessFile ) ;
300
303
testFixture . TestFixtureEntity . Name = testFixture . DisplayName ;
@@ -304,6 +307,7 @@ public async Task RunAllAsync(string selector)
304
307
{
305
308
if ( ! testSelector . CanRunTest ( testFixture , testCase ) )
306
309
{
310
+ console . MarkupLine ( $ " - [yellow]{ testCase . DisplayName } [/]") ;
307
311
continue ;
308
312
}
309
313
@@ -313,6 +317,15 @@ public async Task RunAllAsync(string selector)
313
317
testResult . ExecutionOrder = ++ counter ;
314
318
await sessionClient . AddResultAsync ( testResult ) ;
315
319
testResults . Add ( testResult ) ;
320
+ if ( testResult . Result == Persistence . Core . Enums . TestStatus . Success )
321
+ {
322
+ console . MarkupLine ( $ " - [green]{ testCase . DisplayName } [/]") ;
323
+ }
324
+ else
325
+ {
326
+ console . MarkupLine ( $ " - [red]{ testCase . DisplayName } [/]") ;
327
+ console . MarkupLine ( $ " [red]{ testResult . FailureDetails . Exception } - { testResult . FailureDetails . Message } [/]") ;
328
+ }
316
329
}
317
330
318
331
}
0 commit comments