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 22
33All notable changes to the "robotcode" extension will be documented in this file.
44
5- Check [ Keep a Changelog] ( http://keepachangelog.com/ ) for recommendations on how to structure this file.
6-
75## [ Unreleased]
86
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 401401 " ms-python.python"
402402 ],
403403 "dependencies" : {
404+ "ansi-colors" : " ^4.1.1" ,
404405 "vscode-debugadapter" : " ^1.49.0" ,
405406 "vscode-languageclient" : " ^7.0.0"
406407 },
426427 "glob" : " ^7.1.7" ,
427428 "mocha" : " ^9.1.1" ,
428429 "prettier" : " ^2.4.0" ,
430+ "replace-in-file" : " ^6.2.0" ,
429431 "ts-loader" : " ^9.2.5" ,
430432 "typescript" : " ^4.4.3" ,
431433 "vsce" : " ^1.99.0" ,
432434 "vscode-debugadapter-testsupport" : " ^1.49.0" ,
433435 "vscode-dts" : " ^0.3.1" ,
434436 "vscode-test" : " ^1.6.1" ,
435437 "webpack" : " ^5.52.1" ,
436- "webpack-cli" : " ^4.8.0" ,
437- "replace-in-file" : " ^6.2.0"
438+ "webpack-cli" : " ^4.8.0"
438439 }
439440}
Original file line number Diff line number Diff line change 1+ import { red , yellow } from "ansi-colors" ;
12import * as vscode from "vscode" ;
23import { DebugManager } from "./debugmanager" ;
34import { LanguageClientsManager , RobotTestItem } from "./languageclientsmanger" ;
@@ -602,8 +603,17 @@ export class TestControllerManager {
602603 // location,
603604 // event.itemId !== undefined ? this.findTestItemById(event.itemId) : undefined
604605 // );
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+ }
605615
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" ) ) ;
607617 }
608618 }
609619}
You can’t perform that action at this time.
0 commit comments