Skip to content

Test resources not patched into the module under test. #27

@weiqigao

Description

@weiqigao

This might be related with #26.

When I modularize a simple application with a test that loads a test resource file by adding a module-info.java file in src/main/java and apply to moduleplugin to build.gradle, the test fails.

Here's a simple project that exhibits the issue: https://github.com/weiqigao/moduleplugin-test-resources-issue/tree/master/src

Runnin "gradle test --debug" reveals that module path includes

    ./build/classes/java/main
    ./build/classes/java/test
    ./build/resources/main
    ./build/resources/test

with only the ./build/classes/java/test patched into the module. To have the resources visible from inside the module, the ./build/resources/main and ./build/resources/test needs to be patched into the module as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions