samedi 22 août 2015

How to organise unit, integration, e2e tests folder structure in maven for a Java project?

I have a java project in maven and i know maven puts thing conventionally using

  • src/main/java
  • src/test/java

and everything under test/ is usually unit test. But what if i want to introduce integration tests and E2E tests? How should i put in the correct folder structure? What is the correct way to organise these?

could this be it:

  • src/it/java
  • src/e2e/java
  • src/test/java

?

but doing this way would assume src/test/java is referring to unit tests. I rather have a clearly specified

Aucun commentaire:

Enregistrer un commentaire