File tree Expand file tree Collapse file tree 3 files changed +28
-6
lines changed Expand file tree Collapse file tree 3 files changed +28
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to the "robotcode" extension will be documented in this file.
4
4
5
- Check [ Keep a Changelog] ( http://keepachangelog.com/ ) for recommendations on how to structure this file.
6
-
7
5
## [ Unreleased]
8
6
9
- - Initial release
7
+ ### added
8
+
9
+ - improve test run messages
10
+ - add "Taks" to section completion
11
+ - add colors to test output
12
+
13
+ ## 0.2.0
14
+
15
+ - Initial release
16
+
17
+
18
+ ---
19
+
20
+ Check [ Keep a Changelog] ( http://keepachangelog.com/ ) for recommendations on how to structure this file.
Original file line number Diff line number Diff line change 401
401
" ms-python.python"
402
402
],
403
403
"dependencies" : {
404
+ "ansi-colors" : " ^4.1.1" ,
404
405
"vscode-debugadapter" : " ^1.49.0" ,
405
406
"vscode-languageclient" : " ^7.0.0"
406
407
},
426
427
"glob" : " ^7.1.7" ,
427
428
"mocha" : " ^9.1.1" ,
428
429
"prettier" : " ^2.4.0" ,
430
+ "replace-in-file" : " ^6.2.0" ,
429
431
"ts-loader" : " ^9.2.5" ,
430
432
"typescript" : " ^4.4.3" ,
431
433
"vsce" : " ^1.99.0" ,
432
434
"vscode-debugadapter-testsupport" : " ^1.49.0" ,
433
435
"vscode-dts" : " ^0.3.1" ,
434
436
"vscode-test" : " ^1.6.1" ,
435
437
"webpack" : " ^5.52.1" ,
436
- "webpack-cli" : " ^4.8.0" ,
437
- "replace-in-file" : " ^6.2.0"
438
+ "webpack-cli" : " ^4.8.0"
438
439
}
439
440
}
Original file line number Diff line number Diff line change
1
+ import { red , yellow } from "ansi-colors" ;
1
2
import * as vscode from "vscode" ;
2
3
import { DebugManager } from "./debugmanager" ;
3
4
import { LanguageClientsManager , RobotTestItem } from "./languageclientsmanger" ;
@@ -602,8 +603,17 @@ export class TestControllerManager {
602
603
// location,
603
604
// event.itemId !== undefined ? this.findTestItemById(event.itemId) : undefined
604
605
// );
606
+ let style = ( s : string ) => s ;
607
+ switch ( event . level ) {
608
+ case "WARN" :
609
+ style = yellow ;
610
+ break ;
611
+ case "ERROR" :
612
+ style = red ;
613
+ break ;
614
+ }
605
615
606
- run . appendOutput ( `${ event . level } : ${ event . message . replaceAll ( "\n" , "\r\n" ) } ` + "\r\n" ) ;
616
+ run . appendOutput ( style ( `${ event . level } : ${ event . message . replaceAll ( "\n" , "\r\n" ) } ` + "\r\n" ) ) ;
607
617
}
608
618
}
609
619
}
You can’t perform that action at this time.
0 commit comments