mardi 10 octobre 2017

Exclude some test Classes when building spring boot app

I have a big java project and want to build test classes for several parts of the project.

I have the Context test in the Root package of my spring boot test folder.

-Test
 -Root
  -ParentContextTest.class
  -ChildContextTest.class
 -FocusedTest
  -UserPermissioningTest.class <- extends ChildContextTest.class

I want to arrange my test package like the above so when am building the project only the main context are tested and anything in FocusedTest package don't run.

FocusedTest test classes extend the corresponding Context when running the test manually.

Am using spring boot + maven.

Any help would be great.

Aucun commentaire:

Enregistrer un commentaire