How do I include test classes and configuration in my war for integration testing using maven?

前端 未结 7 1388
梦谈多话
梦谈多话 2021-01-12 05:33

I currently have a maven web project that I am attempting to write integration tests for. For the structure of the project, I\'ve defined test stubs under src/test/j

7条回答
  •  北海茫月
    2021-01-12 06:10

    You can use the maven build helper plugin to add additional folders to the "normal" class path.

    But I would recommend to create an new folder for your integration test (for example src/it/java), and add this folder, but not the "normal" test folder (src/test/java) -- the same for the resources folder.

提交回复
热议问题