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

A Cucumber plugin for 4th version 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-cucumber4-plugin
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

io.github.khda91:step-logger-cucumber4-plugin
A Cucumber plugin for 4th version that logs steps at the moment of execution

Download step-logger-cucumber4-plugin

How to add to project

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

Dependencies

compile (1)

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

provided (3)

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

test (4)

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

Project Modules

There are no modules declared in this project.

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
1.0.2
1.0.1
1.0.0