Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Show coverage for files even when tests fails (#2263)
Browse files Browse the repository at this point in the history
  • Loading branch information
katakonst authored and ramya-rao-a committed Jan 29, 2019
1 parent 13f8083 commit 0ee1ca6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/goCover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,6 @@ export function toggleCoverageCurrentPackage() {
return goTest(testConfig).then(success => {
if (!success) {
showTestOutput();
return [];
}
return applyCodeCoverageToAllEditors(tmpCoverPath, testConfig.dir);
});
Expand Down
2 changes: 1 addition & 1 deletion src/goTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function testCurrentPackage(goConfig: vscode.WorkspaceConfiguration, isBe
isModSupported(editor.document.uri).then(isMod => {
testConfig.isMod = isMod;
return goTest(testConfig).then(success => {
if (success && tmpCoverPath) {
if (tmpCoverPath) {
return applyCodeCoverageToAllEditors(tmpCoverPath, testConfig.dir);
}
}, err => {
Expand Down

0 comments on commit 0ee1ca6

Please sign in to comment.