Skip to content

Potential issue with tests derived from IndexBindingResolutionTestBase and JUnit5 #1375

@i-garrison

Description

@i-garrison

I am not aware of any tests having a problem with running with JUnit5 runner. If there is a specific test(s) that you see an issue with, please let me know and I can look closer.

For clarity I mean running with JUnit5 means the JUnit5 dropdown in the launch configuration. This picture is from TESTING.md

Yes, that's the window I'm using to change between JUnit5 and JUnit3. Now if I run parser tests under JUnit5 I only see 4699 unit tests are run. If I change to JUnit3 then there are 5768 tests run. Not sure what's the actual issue (could be my openjdk-21).

I vaguely recall that e.g. those inheriting from IndexBindingResolutionTestBase and adding test cases during setup phase are not actually found by JUnit5 because they do not match JUnit5 unit test class discovery expectations. I remember looking into this while working on IndexConcepTest which is most recent of this kind. I decided to switch to JUnit3 for parser tests locally for now and just ask about current state of JUnit3 vs JUnit5 so we probably can pick the right version and fix any tests which are not found or fail with that.

Originally posted by @i-garrison in #1366 (comment)

Metadata

Metadata

Assignees

Labels

flakytestsTracking known flaky testslanguageC/C++ Language SupportrelengRelease engineering and project management

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions