Skip to content

Commit

Permalink
feat: upgrade Gatling 3.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
slandelle committed Apr 24, 2024
1 parent 22fc9f8 commit 35cc78c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class GatlingPluginExtension {

static final String GATLING_RESOURCES_DIR = "src/gatling/resources"

static final String GATLING_VERSION = '3.10.5'
static final String GATLING_VERSION = '3.11.1'

static final String SCALA_VERSION = '2.13.13'

Expand Down
23 changes: 0 additions & 23 deletions src/test/groovy/func/WhenGroovyRunScalaSimulationSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,6 @@ class WhenGroovyRunScalaSimulationSpec extends GatlingFuncSpec {
!result.output.split().any { it.contains("INFO") }
}

def "should allow Gatling config override"() {
setup:
prepareGroovyTestWithScala("/gradle-layout")
and: "override config by disabling reports"
new File(new File(projectDir.root, "src/gatling/resources"), "gatling.conf") << """
gatling.charting.noReports = true
"""
when:
BuildResult result = executeGradle(GATLING_RUN_TASK_NAME, "--non-interactive", "--all")
then:
result.task(":$GATLING_RUN_TASK_NAME").outcome == SUCCESS
and: "no reports generated"
with(new File(buildDir, "reports/gatling").listFiles()) { reports ->
reports.size() == 2
reports.find { it.name.startsWith("basicsimulation") } != null
reports.find { it.name.startsWith("basicsimulation") }.listFiles().collect { it.name } == ["simulation.log"]
reports.find { it.name.startsWith("advancedsimulationstep03") } != null
reports.find { it.name.startsWith("advancedsimulationstep03") }.listFiles().collect { it.name } == ["simulation.log"]

}
}


def "fail when no simulation is found"() {
setup:
prepareGroovyTestWithScala(null)
Expand Down

0 comments on commit 35cc78c

Please sign in to comment.