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 #setUp instead of #initialize for test cases #16417

Merged
merged 3 commits into from Apr 7, 2024

Conversation

jecisc
Copy link
Member

@jecisc jecisc commented Apr 6, 2024

Subclasses of TestCase should prioritize #setUp over #initialize because SUnit nils out some ivar and it can cause problems while relaunching some tests.

I also converted a sharedVariable to an instance variable because it did not make sense to me to have a shared variable.

Subclasses of TestCase should prioritize #setUp over #initialize because SUnit nils out some ivar and it can cause problems while relaunching some tests.

I also converted a sharedVariable to an instance variable because it did not make sense to me to have a shared variable.
@MarcusDenker MarcusDenker merged commit 06d93ff into pharo-project:Pharo12 Apr 7, 2024
1 of 2 checks passed
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.

None yet

2 participants