Skip to content

Repair the support for Test with Coverage #8007

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

Merged
merged 1 commit into from
Apr 7, 2025

Conversation

jwren
Copy link
Member

@jwren jwren commented Apr 4, 2025

If successful, this will resolve #7810

Delay is due to Gradle IJ (upstream IJ platform) issues, this work was blocked until this was resolved: #7936

If successful, this will resolve flutter#7810

Delay is due to Gradle IJ (upstream IJ platform) issues, this work was blocked until this was resolved: flutter#7936
@jwren jwren requested a review from pq April 4, 2025 19:22
@@ -0,0 +1,58 @@
/*
* Copyright 2021 The Chromium Authors. All rights reserved.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should this be 2025? (Similarly for the other new files?)

return roots.toArray(VirtualFile.EMPTY_ARRAY);
});
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe add a trailing newline here and below?

final String filePath = file.getAbsolutePath();
final int index = filePath.indexOf("coverage");
if (index < 0) {
// TODO Define at least one class in data
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it standard to include a username?

addLineCount(line.substring(DATA_LABEL.length()));
}
else if (line.startsWith(FILE_LABEL)) {
//currentFile = Paths.get(line.substring(FILE_LABEL.length())).normalize();
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe remove the commented code?

}
catch (NumberFormatException ex) {
return 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Aside: surprising that there isn't some kind of "safe" parseInt...

@jwren jwren merged commit 015c3b7 into flutter:master Apr 7, 2025
9 checks passed
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.

Upgrade org.jetbrains.intellij.platform to 2.2.1 from 2.1.0 Test with coverage disabled
2 participants