loadtest4j-slf4j

SLF4J reporter for loadtest4j.

License

License

Categories

Categories

SLF4J Application Layer Libs Logging
GroupId

GroupId

org.loadtest4j.reporters
ArtifactId

ArtifactId

loadtest4j-slf4j
Last Version

Last Version

0.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

loadtest4j-slf4j
SLF4J reporter for loadtest4j.
Project URL

Project URL

https://github.com/loadtest4j/loadtest4j-reporter-slf4j
Source Code Management

Source Code Management

https://github.com/loadtest4j/loadtest4j-reporter-slf4j

Download loadtest4j-slf4j

How to add to project

<!-- https://jarcasting.com/artifacts/org.loadtest4j.reporters/loadtest4j-slf4j/ -->
<dependency>
    <groupId>org.loadtest4j.reporters</groupId>
    <artifactId>loadtest4j-slf4j</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.loadtest4j.reporters/loadtest4j-slf4j/
implementation 'org.loadtest4j.reporters:loadtest4j-slf4j:0.1.0'
// https://jarcasting.com/artifacts/org.loadtest4j.reporters/loadtest4j-slf4j/
implementation ("org.loadtest4j.reporters:loadtest4j-slf4j:0.1.0")
'org.loadtest4j.reporters:loadtest4j-slf4j:jar:0.1.0'
<dependency org="org.loadtest4j.reporters" name="loadtest4j-slf4j" rev="0.1.0">
  <artifact name="loadtest4j-slf4j" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.loadtest4j.reporters', module='loadtest4j-slf4j', version='0.1.0')
)
libraryDependencies += "org.loadtest4j.reporters" % "loadtest4j-slf4j" % "0.1.0"
[org.loadtest4j.reporters/loadtest4j-slf4j "0.1.0"]

Dependencies

compile (1)

Group / Artifact Type Version
org.slf4j : slf4j-api jar 1.7.5

provided (1)

Group / Artifact Type Version
org.loadtest4j : loadtest4j jar 0.19.0

test (3)

Group / Artifact Type Version
org.slf4j : slf4j-simple jar 1.7.5
junit : junit jar 4.12
org.assertj : assertj-core jar 3.10.0

Project Modules

There are no modules declared in this project.

loadtest4j-slf4j

Build Status Codecov Maven Central

SLF4J reporter for loadtest4j.

Setup

Add this library to your project's pom.xml:

<dependency>
    <groupId>org.loadtest4j.reporters</groupId>
    <artifactId>loadtest4j-slf4j</artifactId>
    <scope>test</scope>
</dependency>

Note: Reporters reference the core loadtest4j library in provided scope. All standard Drivers will provide it automatically. If you are not using a standard Driver, you must add org.loadtest4j:loadtest4j to your pom.xml.

Note: SLF4J requires an appender to work. Your Driver or Web framework (such as Dropwizard) may provide one automatically. If not, you must add an appender (such as Logback) to your pom.xml.

<dependencies>
    <dependency>
        <groupId>org.loadtest4j.drivers</groupId>
        <artifactId>loadtest4j-[driver]</artifactId>
        <scope>test</scope>
    </dependency>
    <dependency>
        <groupId>org.loadtest4j.reporters</groupId>
        <artifactId>loadtest4j-slf4j</artifactId>
        <scope>test</scope>
    </dependency>
</dependencies>

Usage

Attach the reporter using the LoadTesterDecorator, or any other method that suits you.

public class PetStoreLT {
    private static final LoadTester loadTester = new LoadTesterDecorator()
            .add(new Slf4jReporter())
            .decorate(LoadTesterFactory.getLoadTester());
    
    @Test
    public void shouldFindPets() {
        // ...
    }
}
org.loadtest4j.reporters
A simple load test facade for Java.

Versions

Version
0.1.0
0.0.1