io.github.khda91:step-logger-cucumber-plugin

A Cucumber plugin that logs steps at the moment of execution

License

License

Categories

Categories

Cucumber Application Testing & Monitoring
GroupId

GroupId

io.github.khda91
ArtifactId

ArtifactId

step-logger-cucumber-plugin
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

pom
Description

Description

io.github.khda91:step-logger-cucumber-plugin
A Cucumber plugin that logs steps at the moment of execution
Project URL

Project URL

https://github.com/khda91/cucumber-step-console-logger-plugin
Source Code Management

Source Code Management

https://github.com/khda91/cucumber-step-console-logger-plugin

Download step-logger-cucumber-plugin

How to add to project

<!-- https://jarcasting.com/artifacts/io.github.khda91/step-logger-cucumber-plugin/ -->
<dependency>
    <groupId>io.github.khda91</groupId>
    <artifactId>step-logger-cucumber-plugin</artifactId>
    <version>2.0.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/io.github.khda91/step-logger-cucumber-plugin/
implementation 'io.github.khda91:step-logger-cucumber-plugin:2.0.0'
// https://jarcasting.com/artifacts/io.github.khda91/step-logger-cucumber-plugin/
implementation ("io.github.khda91:step-logger-cucumber-plugin:2.0.0")
'io.github.khda91:step-logger-cucumber-plugin:pom:2.0.0'
<dependency org="io.github.khda91" name="step-logger-cucumber-plugin" rev="2.0.0">
  <artifact name="step-logger-cucumber-plugin" type="pom" />
</dependency>
@Grapes(
@Grab(group='io.github.khda91', module='step-logger-cucumber-plugin', version='2.0.0')
)
libraryDependencies += "io.github.khda91" % "step-logger-cucumber-plugin" % "2.0.0"
[io.github.khda91/step-logger-cucumber-plugin "2.0.0"]

Dependencies

compile (1)

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

provided (2)

Group / Artifact Type Version
io.cucumber : gherkin jar 5.1.0
org.projectlombok : lombok jar 1.18.12

test (2)

Group / Artifact Type Version
junit : junit jar 4.13
ch.qos.logback : logback-classic jar 1.2.3

Project Modules

  • step-logger-cucumber4-plugin
  • step-logger-cucumber5-plugin

Cucumber Console Step Logger plugin

Maven Central Apache License

Cucumber plugin for the printing steps into console. For the console output used slf4 logger

Supported Cucumber 4 and Cucumber 5 versions

Example of the output from the step

---------- Test Step Execution ----------
When I populate mandatory fields with valid values
	|	gazetteYear	|	startDate	|	endDate	|	
	|	2019       	|	1        	|	5      	|	
---------- Test Step Execution ----------

How to use Cucumber 4 console step logger plugin

Add following dependency to you project Maven

<dependency>
    <groupId>io.github.khda91</groupId>
    <artifactId>step-logger-cucumber4-plugin</artifactId>
     <version>$LATEST_VERSION</version>
    <scope>test</scope>
</dependency>

Gradle

testRuntime "io.github.khda91:step-logger-cucumber4-plugin"

Junit 4

@RunWith(Cucumber.class)
@CucumberOptions(
    plugin = {"io.github.khda91.cucumber4.step.console.logger.Cucumber4StepConsoleLogger"}
)
public class Runner {
}

TestNg

@CucumberOptions(
    plugin = {"io.github.khda91.cucumber4.step.console.logger.Cucumber4StepConsoleLogger"}
)
public class Runner extends AbstractTestNGCucumberTests {
}

Maven

mvn clean test -Dcucumber.options="--plugin io.github.khda91.cucumber4.step.console.logger.Cucumber4StepConsoleLogger"

Gradle

See official Gradle documentation for Cucumber

How to use Cucumber 5 console step logger plugin

Add following dependency to you project Maven

<dependency>
    <groupId>io.github.khda91</groupId>
    <artifactId>step-logger-cucumber5-plugin</artifactId>
     <version>$LATEST_VERSION</version>
    <scope>test</scope>
</dependency>

Gradle

testRuntime "io.github.khda91:step-logger-cucumber5-plugin"

Junit 4

@RunWith(Cucumber.class)
@CucumberOptions(
    plugin = {"io.github.khda91.cucumber5.step.console.logger.Cucumber5StepConsoleLogger"}
)
public class Runner {
}

TestNg

@CucumberOptions(
    plugin = {"io.github.khda91.cucumber5.step.console.logger.Cucumber5StepConsoleLogger"}
)
public class Runner extends AbstractTestNGCucumberTests {
}

Maven

mvn clean test -Dcucumber.options="--plugin io.github.khda91.cucumber5.step.console.logger.Cucumber5StepConsoleLogger"

Gradle

See official Gradle documentation for Cucumber

Versions

Version
2.0.0