cushon / issues-import

0 stars 0 forks source link

JUnit 4 tests with methods annotated with @Test but no @RunWith annotation on the class #256

Closed cushon closed 9 years ago

cushon commented 9 years ago

Original issue created by vinayshah@google.com on 2014-06-20 at 10:57 PM


If someone forgets to put @RunsWith, then their JUnit 4 tests won't run and the failure is silent. I've included minimal positive & negative cases in the attachments.

cushon commented 9 years ago

Original comment posted by eaftan@google.com on 2014-08-22 at 05:22 PM


We just added an internal check for this. FYI the @RunWith annotation is only required inside Google; outside you can execute a JUnit 4 test even without the annotation.


Status: Fixed