tmtsoftware / csw

TMT Common Software Product
Other
51 stars 12 forks source link

#CSW-183: Manish | Chauhan: Replace scalatest+junit with sbt/junit-in… #417

Closed Manish3323 closed 2 years ago

Manish3323 commented 2 years ago

…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.