How to configure GitLab CI job for running Gatling tests integrated with sbt?

Viewed 1627

I applied sbt plugin for using Gatling and now I have no idea how to run my scenarios in GitLab CI. Does somebody have such experience?

2 Answers

Resolved. How to run gatling scenarios in gitlab pipeline:

image: "hseeberger/scala-sbt:8u252_1.3.10_2.13.2"

stages:
  - testLoad

load:
  stage: testLoad
  when: manual
  script:
    - sbt gatling:test
  artifacts:
    paths:
      - "target/gatling/"
    expire_in: 1 week
    when: always

The most plug-and-play solution is to use FrontLine, our Enterprise version.

Even though we don't have a plugin like we do for Jenkins, Bamboo and TeamCity, as GitLab CI doesn't provide a plugin API, we provide a shell script that implements the same load of FrontLine REST API calls.

Related