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

Show coverage for files when tests fails #2263

Merged
merged 1 commit into from
Jan 29, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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