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

Recommend to opt out hacky tests on the page that is linked in leak tracking error. #246

Closed
wants to merge 1 commit into from

Conversation

polina-c
Copy link
Contributor

No description provided.

@@ -69,7 +69,16 @@ to happen after the rendering cycle completes.
If this is a case, `imageCache.clear()` needs to happen as last statement of the test,
instead of in tear down, to allow the cycles to happen.

### 4. The test throws flutter exception
### 4. The test is hacky
Copy link

Choose a reason for hiding this comment

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

Following up on request from flutter/flutter#154481
IMO, hacky tests should generally be avoided. :)
Does this scenario need to be documented then? It feels like a blank check that anyone could say, well let's just skip testing for leaks since this test is a hack. That feels like a test that is not very valuable.

Copy link
Contributor Author

@polina-c polina-c Oct 20, 2024

Choose a reason for hiding this comment

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

Yes, we want to avoid hacky tests as much as possible.
But, some tests have to be hacky.

So I suggest the rule like "To opt out a test, prove carefully that the test is hacky".

But, yes, we can skip documenting this to reduce tendency to opt out tests.

@polina-c polina-c changed the title Update TROUBLESHOOT.md Recommend to opt out hacky tests. Oct 20, 2024
@polina-c polina-c changed the title Recommend to opt out hacky tests. Recommend to opt out hacky tests on the page that is linked in leak tracking error. Oct 20, 2024
@polina-c polina-c closed this Oct 23, 2024
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