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

Conversation

katakonst
Copy link
Contributor

Fixes #2193 by showing coverage in files even if the test fails

src/goCover.ts Outdated
@@ -305,7 +305,7 @@ export function toggleCoverageCurrentPackage() {
return goTest(testConfig).then(success => {
if (!success) {
showTestOutput();
return [];
return applyCodeCoverageToAllEditors(tmpCoverPath, testConfig.dir);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can skip this line altogether as we are returning the same outside this if block.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better this way!
I've commited the change

Copy link
Contributor

@ramya-rao-a ramya-rao-a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@ramya-rao-a ramya-rao-a merged commit 0ee1ca6 into microsoft:master Jan 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants