While working on documentation story, we encountered few java tests were getting skipped because JUnitSuite( marker from ScalaTest) was not failing in case of any error in BeforeClass setup for java tests.
Currently, we have 1 test runner for both scala & java tests which is coming from ScalaTest framework. The runner provided by ScalaTestPlus+Junit has an issue. Whenever there is an exception in @BeforeClass it doesn’t fail instead it skips the tests in that class without showing any log.
This PR is created to resolve that issue.
This PR also makes sure all java tests are properly running now & the error like above gets caught in future.
…terface for junit4 tests
While working on documentation story, we encountered few java tests were getting skipped because JUnitSuite( marker from ScalaTest) was not failing in case of any error in BeforeClass setup for java tests.
Currently, we have 1 test runner for both scala & java tests which is coming from ScalaTest framework. The runner provided by ScalaTestPlus+Junit has an issue. Whenever there is an exception in @BeforeClass it doesn’t fail instead it skips the tests in that class without showing any log.
This PR is created to resolve that issue. This PR also makes sure all java tests are properly running now & the error like above gets caught in future.