Run all tests from a single src folder - Gatling Typescript

Gatling version: 3.11.4 (must be up to date)
Gatling flavor: java kotlin scala javascript [] typescript
Gatling build tool: [ ] maven [ ] gradle [ ] sbt [ ] bundle [
] npm

[*] I read the guidelines and how to ask a question topics.

Hi Good folks at Gatling,

I am wondering how I can run all the tests inside the src folder ? I have multiple simulations and I want to run them all at one.

I tried various combinations but they fail
npx gatling run --simulation src/ —> Fails
npx gatling run --simulation src/**.ts → Fails

The second command failed with following output

14:24:48.206 [ERROR] i.g.a.Gatling$ - Run crashed
java.util.NoSuchElementException: Simulation 'src/first_test.gatling.ts' was not found in the JavaScript bundle

If I run them one after other, there is no issue and they all run. Found the docs also doesn’t mention how to run tests all at once.

I don’t think that running multiple simulations at once is a good practice.
Load tests are not unit tests, they are more similar to integration tests that change the state of an application.
In which order should they run? Alphabetic?
And if you’re testing an application with a runtime, there’s a good chance the result of your second test is better than if it was not running after the previous one because your application has warmed up.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.