Hi all,
I’m getting this error while trying to run using sbt, with gatling:test and gatling:testOnly.
Error: Unknown option -oD
Try --help for more information.
[error] Provided arguments (-oD-m-rf/Users/xyz/Projects/xxx-service/target/gatling) are not valid.
[info] Simulation(s) execution ended.
[error] Error during tests:
[error] path.to.file.XYZSimulation
[error] (gatling:test) sbt.TestsFailedException: Tests unsuccessful
[error] Total time: 2 s, completed Sep 1, 2016 4:14:06 PM
My build file:
object Build extends XXXBuild {
lazy val root = Project("XXX-service", file("."))
.enablePlugins(JavaAppPackaging)
.enablePlugins(UniversalPlugin)
.enablePlugins(GatlingPlugin)
.settings(
mainClass := Some("XXX.Main"),
// UniversalPlugin settings
topLevelDirectory := None,
name in Universal := name.value,
// Slick
slick <<= slickCodeGenTask // register manual sbt command
// sourceGenerators in Compile <+= slickCodeGenTask // register automatic code generation on every compile, remove for only manual use
)
.settings(libraryDependencies ++=
compile(
akkaActor,
akkaSlf4j,
base64,
ficus,
nscalaTime,
postgressDriver,
retry,
slickCore,
slickHikariCP,
slickCodeGenerator,
sprayCan,
sprayClient,
sprayRouting,
sprayJson,
spraySwagger,
jacksonDatabind,
jacksonScala
) ++
runtime(
logback,
logstashLogbackEncoder,
janino
) ++
test(
scalatest,
sprayTestkit,
gatlinCharts,
gatlin
) ++ it(
scalatest,
sprayTestkit,
gatlin,
gatlinCharts
)
)
.configs(IntegrationTest)
.settings(Defaults.itSettings : _*)
.settings(parallelExecution in IntegrationTest := false)
// git pre push hook
Seq("sh", "tools/pre-push-install").run()
}
Thanks