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

Use Logger.detached for test loggers #158

Merged
merged 1 commit into from
Oct 16, 2023

Conversation

blaugold
Copy link
Contributor

@blaugold blaugold commented Oct 16, 2023

The primary Logger constructor returns the same instance when given the same string. This meant that all tests effectively used the same instance, breaking the separation of log messages printed in case of a test failure.

By using Logger.detached every test actually gets its own logger.

Also, a drive by change in compiler_resolver_test.dart to correct what looks like a typo.

@dcharkes
Copy link
Collaborator

By using Logger.detached every test actually gets its own logger.

I've been looking for this forever! ❤️ (Apparently that API was too hard for me to find! 🤓 )

Copy link
Collaborator

@dcharkes dcharkes left a comment

Choose a reason for hiding this comment

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

❤️

@coveralls
Copy link

Coverage Status

coverage: 98.177%. remained the same when pulling 278b7e9 on blaugold:create-new-logger-for-each-test into 22f4481 on dart-lang:main.

@dcharkes dcharkes merged commit 757f503 into dart-lang:main Oct 16, 2023
18 checks passed
HosseinYousefi added a commit that referenced this pull request Nov 16, 2023
Closes #132.

ASM backend, parses classes, fields and method signatures from the metadata to add generic type information to other-wise type-erased generics.
HosseinYousefi added a commit that referenced this pull request Nov 16, 2023
Closes #132.

ASM backend, parses classes, fields and method signatures from the metadata to add generic type information to other-wise type-erased generics.
HosseinYousefi pushed a commit that referenced this pull request Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants