maven doesn't have the notion of "configurations" like gradle and sbt have.
Do your Gatling tests have any dependency to your main and test code? Does it need to live in the same lifecycle?
If Gatling tests are isolated, IMHO, the best solutions are:
- either move your Gatling tests into a subdirectory so they are completely isolated from your application code. This way, you have Gatling live in the same git repository and yet don't risk mixing/messing up with your application's classpath
- or isolate Gatling execution into a profile where you remap the test directories:
<profiles>
<profile>
<id>gatling</id>
<build>
<testSourceDirectory>src/it/scala</testSourceDirectory>
<testResources>
<testResource>
<directory>${project.basedir}/src/it/resources</directory>
</testResource>
</testResources>
</build>
</profile>
</profiles>
--Stéphane LandelleChief Technical Officer | | | | |