Skip to content

Commit

Permalink
Merge pull request #26268 from qmonmert/sonar250524
Browse files Browse the repository at this point in the history
Sonar: This block of commented-out lines of code should be removed
  • Loading branch information
DanielFran authored May 25, 2024
2 parents 063a3d7 + 3ab1138 commit e5c605e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions generators/gatling/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Gatling sub-generator

Generates load testing simulations for entities using [Gatling](https://gatling.io/).

## Logging tips

```
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory();
{
// Log all HTTP requests
//context.getLogger("io.gatling.http").setLevel(Level.valueOf("TRACE"));
// Log failed HTTP requests
//context.getLogger("io.gatling.http").setLevel(Level.valueOf("DEBUG"));
}
```
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ import org.slf4j.LoggerFactory;

/**
* Performance test for the <%= entityClass %> entity.
*
* @see <a href="https://github.com/jhipster/generator-jhipster/tree/v<%- jhipsterVersion %>/generators/gatling#logging-tips">Logging tips</a>
*/
public class <%= entityClass %>GatlingTest extends Simulation {

Expand Down

0 comments on commit e5c605e

Please sign in to comment.