Junit5: Add mechanism for launcher to detect engine capabilities

Created on 6 Jan 2016  Â·  11Comments  Â·  Source: junit-team/junit5

Use cases:

  • Launcher gives warning if a Specification (e.g. AllTestsSpecification) is not supported, so that user knows that their tests might not be picked up as expected.
  • IDE/Launcher switches on features (e.g. Tagging) only if all/some registered engines support it.
  • Launcher/IDE won't use features that break backwards compatibility

Potential capabilities to announce:

  • Supported specifications
  • Tagging
  • Engine filters
  • Support for opentest4j
  • Custom events
  • Supported API version (starting with 5.0)?

This feature needs both:

  • A way for engines to declare their capabilities
  • A way for users of launcher to find out about capabilities
Platform enhancement

Most helpful comment

Another potential capability: Parallelization

All 11 comments

Another potential capability: Parallelization

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

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

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

Ok. Thanks. I will be wait. =)

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.

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.

@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.

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

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

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

netzwerg picture netzwerg  Â·  6Comments

ondrejlerch picture ondrejlerch  Â·  4Comments

timandy picture timandy  Â·  3Comments

mfulton26 picture mfulton26  Â·  3Comments

galan picture galan  Â·  3Comments