8000 Junit | Category | Accept string value instead of class · Issue #400 · junit-team/junit4 · GitHub
[go: up one dir, main page]

Skip to content
Junit | Category | Accept string value instead of class #400
@muralidh

Description

@muralidh

Hi,

I am using junit 4.9 along with maven surefire plugin for running test cases belonging to a particular group.
Similar to testng, can we have junit category accept string values in addition to/instead of just classes ?

This is creating problem when we have a multi module maven based project and we define plugin config in the parent pom, the category class mentioned in the parent pom wouldnt have loaded yet and throws ClassNotFoundException.

Else, we will have to repeat the plugin config in all the sub-modules which is redundant.
Are there any advantages of accepting a class instead of String in org.junit.experimental.categories.Category ?

Thanks,
Gayathri

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0