Skip to content

JUnit Params problem in 1.8.1 #186

@iTitus

Description

@iTitus

Hello, I'm back with another JUnit Params problem:

#168 fixed only a part of the problem:

  • I still have to add this to my build.gradle to make a parameterized test compile:
compileTestJava {
    moduleOptions {
        addModules = ['org.junit.jupiter.params']
        addReads = ['io.github.ititus.skat': 'org.junit.jupiter.params']
    }
}

test {
    useJUnitPlatform()

    moduleOptions {
        addReads = ['io.github.ititus.skat': 'org.junit.jupiter.params']
    }
}
  • I get this warning when compiling tests: warning: [options] module name in --add-exports option not found: org.junit.platform.engine

To compare, this is what I had to do before (in version 1.7.0):

compileTestJava {
    moduleOptions {
        addModules = ['org.junit.jupiter.params']
        addReads = ['io.github.ititus.skat': 'org.junit.jupiter.params']
    }
}

test {
    useJUnitPlatform()

    moduleOptions {
        addReads = ['io.github.ititus.skat': 'org.junit.jupiter.params']
        addExports = [
                'org.junit.platform.commons/org.junit.platform.commons.util'   : 'ALL-UNNAMED',
                'org.junit.platform.commons/org.junit.platform.commons.logging': 'ALL-UNNAMED'
        ]
        addOpens = ['io.github.ititus.skat/io.github.ititus.skat.network.buffer': 'org.junit.platform.commons']
    }
}

Link: https://github.com/iTitus/skat-java/blob/main/build.gradle

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions