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

Tests that pass in Pharo 11 don't pass in Pharo 12 #16808

Open
Eliott-Guevel opened this issue Jun 26, 2024 · 1 comment
Open

Tests that pass in Pharo 11 don't pass in Pharo 12 #16808

Eliott-Guevel opened this issue Jun 26, 2024 · 1 comment

Comments

@Eliott-Guevel
Copy link

Bug description
Some tests that pass in Pharo 11 don't pass in Pharo 12.

To Reproduce
Steps to reproduce the behavior:

  1. Load Molecule (dev-incubator branch)
Metacello new
   baseline: 'Molecule';
   repository: 'github://OpenSmock/Molecule:dev-incubator/src';
   load.
  1. Execute MolComponentManager's tests in the Molecule-Examples package
  2. testDeepCleanupGarbageCollect, testFlushComponents and testGarbageCollect can fail.
    Executing them individually doesn't raise errors, and since the tests pass in Pharo 11 it seems more of a Pharo 12 problem than an setUp and tearDown problem.

Expected behavior
Tests that pass in Pharo 11 should also pass in Pharo 12.

Screenshots
Examples of different outputs
image
image
image

Version information:

  • OS: Windows
  • Version: 22H2
  • Pharo Version: 12
@Ducasse
Copy link
Member

Ducasse commented Jun 26, 2024

Thanks Eliot
Thank for your report. If your tests works in isolation and not in a group it means that you get a dependency between your tests.
The tester runner has been changed to make sure that the tests are not always run in the same order just to spot such hidden and bad dependencies.
So can you check your code because to us this is not a Pharo problem.
S

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants