junit5-capture-system-output-extension

A JUnit Jupiter extension to capture output from System.out/System.err

License

License

Categories

Categories

JUnit Unit Testing
GroupId

GroupId

com.github.blindpirate
ArtifactId

ArtifactId

junit5-capture-system-output-extension
Last Version

Last Version

0.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

junit5-capture-system-output-extension
A JUnit Jupiter extension to capture output from System.out/System.err
Project URL

Project URL

http://github.com/blindpirate/junit5-capture-system-output-extension
Source Code Management

Source Code Management

http://github.com/blindpirate/junit5-capture-system-output-extension

Download junit5-capture-system-output-extension

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.blindpirate/junit5-capture-system-output-extension/ -->
<dependency>
    <groupId>com.github.blindpirate</groupId>
    <artifactId>junit5-capture-system-output-extension</artifactId>
    <version>0.1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.blindpirate/junit5-capture-system-output-extension/
implementation 'com.github.blindpirate:junit5-capture-system-output-extension:0.1.2'
// https://jarcasting.com/artifacts/com.github.blindpirate/junit5-capture-system-output-extension/
implementation ("com.github.blindpirate:junit5-capture-system-output-extension:0.1.2")
'com.github.blindpirate:junit5-capture-system-output-extension:jar:0.1.2'
<dependency org="com.github.blindpirate" name="junit5-capture-system-output-extension" rev="0.1.2">
  <artifact name="junit5-capture-system-output-extension" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.blindpirate', module='junit5-capture-system-output-extension', version='0.1.2')
)
libraryDependencies += "com.github.blindpirate" % "junit5-capture-system-output-extension" % "0.1.2"
[com.github.blindpirate/junit5-capture-system-output-extension "0.1.2"]

Dependencies

compile (2)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.4.2
org.hamcrest : hamcrest-core jar 2.1

Project Modules

There are no modules declared in this project.

A JUnit 5 extension to capture stdout/stderr in tests

The original code is here, this repo is just publishing it to maven central repository.

Usage

Maven:

<dependency>
     <groupId>com.github.blindpirate</groupId>
     <artifactId>junit5-capture-system-output-extension</artifactId>
     <version>0.1.1</version>
     <scope>test</scope>
</dependency>

Gradle:

repositories {
    mavenCentral()
}

testCompile 'com.github.blindpirate:junit5-capture-system-output-extension:0.1.1'

See https://github.com/blindpirate/junit5-capture-system-output-extension/blob/master/src/test/java/com/github/blindpirate/extensions/CaptureSystemOutputExtensionTest.java for examples.

Versions

Version
0.1.2
0.1.1
0.1