junit-team / junit5

✅ The 5th major version of the programmer-friendly testing framework for Java and the JVM
https://junit.org
Eclipse Public License 2.0
6.41k stars 1.48k forks source link

Add mechanism for launcher to detect engine capabilities #90

Open jlink opened 8 years ago

jlink commented 8 years ago

Use cases:

Potential capabilities to announce:

This feature needs both:

marcphilipp commented 8 years ago

Another potential capability: Parallelization

saint88 commented 6 years ago

Hello When you plan to add a parallel launch of tests in Junit 5 via the plugin maven surefire.

saint88 commented 6 years ago

It's critical options for migrate our peroject from junit 4.12 to Jupiter

sormuras commented 6 years ago

Jupiter will soon support parallel execution: see #60 and the related feature branch https://github.com/junit-team/junit5/tree/experiments/parallel-execution

saint88 commented 6 years ago

Ok. Thanks. I will be wait. =)

jlink commented 6 years ago

Haven’t checked the implementation but I wonder if that could/should be a platform feature?

Am 04.04.2018 um 15:12 schrieb Christian Stein notifications@github.com:

Jupiter will soon support parallel execution: see #60 and the related feature branch https://github.com/junit-team/junit5/tree/experiments/parallel-execution

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

sormuras commented 6 years ago

Maybe. At the moment, it's just an opt-in feature of the Jupiter engine.

Wanted to direct @saint88 to #60 to keep this issue free from Jupiter-related requests.

marcphilipp commented 6 years ago

@jlink I'm working on #60 with @leonard84 since Spock also wants to add support for parallel execution. Engines that extend HierarchicalTestEngine will be able to use it so it is kind of a Platform feature. However, we believe it should be possible to enable/disable parallel execution per engine.

aaronq commented 6 years ago

@marcphilipp do you know when your parallel changes will get released?

marcphilipp commented 6 years ago

@aaronq The plan is to polish them and publish them as experimental in 5.3 M1... so 1-2 months.

sormuras commented 5 years ago

Bump/touch.

Especially the "warning part" is crucial when debugging a "No tests found" error message after a test run that should have found tests. For example: engines are present, select source test sources, filters are okay, ... but no engine supports the selected selectors.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. Thank you for your contribution.

leonard84 commented 3 years ago

This feature would have helped with https://github.com/spockframework/spock/issues/1288

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. Thank you for your contribution.

leonard84 commented 2 years ago

I'd say it is still relevant