File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ await initTreeSitter();
107107
108108// 2. Load configuration
109109const phpUnitXML = new PHPUnitXML ();
110- phpUnitXML .loadFile (' /path/to/phpunit.xml' );
110+ await phpUnitXML .loadFile (' /path/to/phpunit.xml' );
111111
112112// 3. Create parser with AST chain (tree-sitter → php-parser fallback)
113113const astParser = new ChainAstParser ([
@@ -181,7 +181,7 @@ runner.on(TeamcityEvent.testResultSummary, (result) => {
181181
182182// Runner lifecycle events
183183runner .on (TestRunnerEvent .run , (builder ) => {
184- console .log (' Command:' , builder .getRuntime (), builder . getArguments ());
184+ console .log (' Command:' , builder .toString ());
185185});
186186runner .on (TestRunnerEvent .close , (code ) => {
187187 console .log (' Exit code:' , code );
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ await initTreeSitter();
106106
107107// 2. 載入設定
108108const phpUnitXML = new PHPUnitXML ();
109- phpUnitXML .loadFile (' /path/to/phpunit.xml' );
109+ await phpUnitXML .loadFile (' /path/to/phpunit.xml' );
110110
111111// 3. 建立解析器,使用 AST 鏈(tree-sitter → php-parser 備援)
112112const astParser = new ChainAstParser ([
@@ -180,7 +180,7 @@ runner.on(TeamcityEvent.testResultSummary, (result) => {
180180
181181// Runner 生命週期事件
182182runner .on (TestRunnerEvent .run , (builder ) => {
183- console .log (' 命令:' , builder .getRuntime (), builder . getArguments ());
183+ console .log (' 命令:' , builder .toString ());
184184});
185185runner .on (TestRunnerEvent .close , (code ) => {
186186 console .log (' 結束代碼:' , code );
You can’t perform that action at this time.
0 commit comments