Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tycho-user] NPE when running JUnit tests using custom @Rule and accessing org.junit.runner.Description::getTestClass()

Hi guys,

I'm trying to run a JUnit test suite with tycho-surefire-plugin. My test suite is using a custom JUnit @Rule that is located in a separate bundle and try to access org.junit.runner.Description::getTestClass(). This results in a NPE.
I found some related information:
 but in my case I really need to access the TestClass so the workaround is not acceptable. Do you know any option? I can try to write a simple reproducer if someone think it will help.

Thanks

Julien

Back to the top