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

A Cucumber plugin that logs steps at the moment of execution

Лицензия

Лицензия

Категории

Категории

Cucumber Тестирование приложения и мониторинг
Группа

Группа

io.github.khda91
Идентификатор

Идентификатор

step-logger-cucumber-plugin
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

pom
Описание

Описание

io.github.khda91:step-logger-cucumber-plugin
A Cucumber plugin that logs steps at the moment of execution
Ссылка на сайт

Ссылка на сайт

https://github.com/khda91/cucumber-step-console-logger-plugin
Система контроля версий

Система контроля версий

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

Скачать step-logger-cucumber-plugin

Имя Файла Размер
step-logger-cucumber-plugin-2.0.0.pom 8 KB
Обзор

Как подключить последнюю версию

<!-- 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"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.slf4j : slf4j-api jar 1.7.30

provided (2)

Идентификатор библиотеки Тип Версия
io.cucumber : gherkin jar 5.1.0
org.projectlombok : lombok jar 1.18.12

test (2)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.13
ch.qos.logback : logback-classic jar 1.2.3

Модули Проекта

  • 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

Версии библиотеки

Версия
2.0.0