Skip to content

Commit d114608

Browse files
JoshwinThomasIBMJoshwinThomasIBM
authored andcommitted
code formatted and renamed output channel name
1 parent 160b0a3 commit d114608

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

src/extension.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,8 @@ function registerCommands(context: ExtensionContext) {
168168
projectProvider.refresh();
169169
}));
170170

171-
// Create an Output Channel named "My Extension Output"
172-
outputChannel = vscode.window.createOutputChannel('My Extension Output');
171+
// Create an Output Channel named "Liberty tools Extension Output"
172+
outputChannel = vscode.window.createOutputChannel('Liberty tools Extension Output');
173173
// Example: Register a command to print a value when executed
174174
let disposable = vscode.commands.registerCommand('extension.printMessage', (message:string) => {
175175
outputChannel.appendLine(message);

src/liberty/devCommands.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,6 @@ function checkReportAndDisplay(report: any, reportType: string, reportTypeLabel:
561561
{}, // Webview options
562562
);
563563
panel.webview.html = getReport(report); // display HTML content
564-
outputChannel.clear();
565564
outputChannel.appendLine(reportType+" path is "+report);
566565
/*
567566
For Maven projects we need to check for the test report in the 'reports' and 'site' dirs.

src/test/MavenTestDevModeActions.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -284,25 +284,25 @@ it('check all test reports exists', async () => {
284284
expect(existenceResults.every(result => result === true)).to.be.true;
285285
}).timeout(10000);
286286

287-
it('View latest Unit test report when all the reports exists', async () => {
288-
const outputView = await new BottomBarPanel().openOutputView();
289-
outputView.clearText();
290-
await utils.launchDashboardAction(item, constants.UTR_DASHABOARD_ACTION, constants.UTR_DASHABOARD_MAC_ACTION);
291-
await outputView.selectChannel("My Extension Output");
292-
const text = await outputView.getText();
293-
assert(text.includes('/target/reports/surefire.html'));
294-
await utils.closeEditor();
295-
}).timeout(10000);
296-
297-
it('View latest Integration test report when all the reports exists', async () => {
298-
const outputView = await new BottomBarPanel().openOutputView();
299-
outputView.clearText();
300-
await utils.launchDashboardAction(item, constants.ITR_DASHBOARD_ACTION, constants.ITR_DASHBOARD_MAC_ACTION);
301-
await outputView.selectChannel("My Extension Output");
302-
const text = await outputView.getText();
303-
assert(text.includes('/target/reports/failsafe.html'));
304-
await utils.closeEditor();
305-
}).timeout(10000);
287+
it('View latest Unit test report when all the reports exists', async () => {
288+
const outputView = await new BottomBarPanel().openOutputView();
289+
outputView.clearText();
290+
await utils.launchDashboardAction(item, constants.UTR_DASHABOARD_ACTION, constants.UTR_DASHABOARD_MAC_ACTION);
291+
await outputView.selectChannel("Liberty tools Extension Output");
292+
const text = await outputView.getText();
293+
assert(text.includes('/target/reports/surefire.html'));
294+
await utils.closeEditor();
295+
}).timeout(10000);
296+
297+
it('View latest Integration test report when all the reports exists', async () => {
298+
const outputView = await new BottomBarPanel().openOutputView();
299+
outputView.clearText();
300+
await utils.launchDashboardAction(item, constants.ITR_DASHBOARD_ACTION, constants.ITR_DASHBOARD_MAC_ACTION);
301+
await outputView.selectChannel("Liberty tools Extension Output");
302+
const text = await outputView.getText();
303+
assert(text.includes('/target/reports/failsafe.html'));
304+
await utils.closeEditor();
305+
}).timeout(10000);
306306

307307
it('View Unit test report for maven project with surefire 3.4.0', async () => {
308308

0 commit comments

Comments
 (0)