Skip to content

Console Launcher should let you specify a module path to scan #3836

@bowbahdoe

Description

@bowbahdoe

Right now, best I can figure, the way to use --scan-modules is to add your application's modules to the module path of the JVM running the console launcher.

I.E.

    java \
        --module-path libs:build/jar \
        --add-modules org.junit.platform.console,web.hello.test,web.util.test \
        --module org.junit.platform.console \
        execute \
          --select-module web.hello.test \
          --select-module web.util.test \
          --reports-dir build/junit

It would be nice if the part where the launching of the console was configured didn't interact with where i was telling it to look for tests.

I.E. I kinda want

junit execute --module-path libs:build/jar execute --scan-modules

To be an option, but it isn't possible to wrap up java -jar junit-platform-console-standalone.jar into an alias on account of needing to add these options on the jvm.

(similar, but less pressing, concerns about jacoco via the cli)

Deliverables

  • [Module Path Can be configured to the right of execute]

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions