I am using the code from https://github.com/alexromanov/gatling-grpc-tests-sample i have added new protobuf under src/main and added a newSimulation.scala under src/test/scala/load. The code works fine and able to run. Now the problem i want a jar that can execute the newSimulation.scala
so my 2 questions?
- is there a way we can create a jar using which i can run the load test script
- If not how can i write a main class which may invoke the tests from there
Thanks
i tried sbt assembly and sbt test:assembly dont think that it worked, as it kept asking me for a main class.
Did you try to specify
?
See https://github.com/sbt/sbt-assembly
I can't see that in their
build.sbthttps://github.com/alexromanov/gatling-grpc-tests-sample/blob/main/build.sbt(Just in case, what are your versions of
sbtandsbt-assembly?)Multiple main classes with SBT assembly
How to set main class in build?
How to pass mainClass argument using sbt assembly
sbt-assembly - can not find main class in jar
why sbt-assembly failed to auto detect main class?