2019-10-31 20:43:47 -05:00
|
|
|
import java.nio.file.Path
|
|
|
|
|
|
|
|
|
|
import io.gatling.commons.util.PathHelper._
|
|
|
|
|
|
|
|
|
|
object IDEPathHelper {
|
|
|
|
|
|
2019-11-17 17:39:40 +01:00
|
|
|
val gatlingConfUrl: Path = getClass.getClassLoader.getResource("gatling.conf")
|
2019-10-31 20:43:47 -05:00
|
|
|
val projectRootDir = gatlingConfUrl.ancestor(3)
|
|
|
|
|
|
|
|
|
|
val mavenSourcesDirectory = projectRootDir / "src" / "test" / "scala"
|
|
|
|
|
val mavenResourcesDirectory = projectRootDir / "src" / "test" / "resources"
|
|
|
|
|
val mavenTargetDirectory = projectRootDir / "target"
|
|
|
|
|
val mavenBinariesDirectory = mavenTargetDirectory / "test-classes"
|
|
|
|
|
|
2019-11-17 17:39:40 +01:00
|
|
|
val resourcesDirectory = mavenResourcesDirectory
|
|
|
|
|
val recorderSimulationsDirectory = mavenSourcesDirectory
|
2019-10-31 20:43:47 -05:00
|
|
|
val resultsDirectory = mavenTargetDirectory / "gatling"
|
|
|
|
|
val recorderConfigFile = mavenResourcesDirectory / "recorder.conf"
|
|
|
|
|
}
|