Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Making a task which rebuilds test coverage for Node #146

Closed
wants to merge 1 commit into from
Closed

Making a task which rebuilds test coverage for Node #146

wants to merge 1 commit into from

Conversation

brandongk
Copy link
Contributor

@brandongk brandongk commented Jul 12, 2018

hard-coding the coverage file in the repo is non-indicative as the path is wrong (i.e. has ryanluker hard-coded).

The Python project matters less because the cov.xml file has relative paths anyways.

@brandongk brandongk self-assigned this Jul 12, 2018
@brandongk brandongk requested a review from ryanluker July 12, 2018 22:31
@@ -1,107 +0,0 @@
TN:
SF:/home/ryanluker/dev/vscode-coverage-gutters/example/node/test.js
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These absolute paths are wrong on every machine but @ryanluker's, so we should not rely on them.

Copy link
Owner

Choose a reason for hiding this comment

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

these paths are fine in the new way we do path comparison (now that top score is dead). it also has the benefit of the build machine not needed to be able to generate xml for node, python, php, etc.


this.filterCoverage(topSection, coverageLines);
this.setDecorationsForEditor(textEditor, coverageLines);
if (section) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ryanluker this can cause the wrong score, etc. to carry over because it doesn't flush properly. noticed with the Python tests with the score filtering thing.

Copy link
Owner

Choose a reason for hiding this comment

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

good catch, fixed this in my other PR #152

@ryanluker
Copy link
Owner

@brandongk60 closing this as we are doing away with the top score logic but replaced it with relative comparison logic.

@ryanluker ryanluker closed this Jul 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants