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

More typical Junit5 extension scopes #8249

Merged
merged 1 commit into from
Feb 11, 2024

Conversation

yschimke
Copy link
Collaborator

A second attempt at #8171

Now following examples from TestInfo more strictly.

There are two classes of instances

a) constructor, before all, after all
b) test method, before each, before all

@yschimke yschimke requested a review from swankjesse February 10, 2024 17:23
@yschimke yschimke changed the title Stricter Junit5 extension More typical Junit5 extension scopes Feb 10, 2024
@yschimke
Copy link
Collaborator Author

@swankjesse requesting post review.

I think this might affect flakyness of some tests, as the scope of parameterised tests wasn't right.

Landing and happy to revert it fix forward.

@yschimke yschimke merged commit 7df522c into square:master Feb 11, 2024
20 checks passed
Copy link
Collaborator

@swankjesse swankjesse left a comment

Choose a reason for hiding this comment

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

LGTM

YES!

get() {
return getOrComputeIfAbsent(storeKey) {
get() =
getStore(namespace).getOrComputeIfAbsent(this.uniqueId) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I like this a lot more

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