cucumber-jvm-extentreport

A custom cucumber-jvm formatter using ExtentReports

License

License

Categories

Categories

Cucumber Application Testing & Monitoring
GroupId

GroupId

com.sitture
ArtifactId

ArtifactId

cucumber-jvm-extentreport
Last Version

Last Version

3.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

cucumber-jvm-extentreport
A custom cucumber-jvm formatter using ExtentReports
Project URL

Project URL

https://github.com/sitture/cucumber-jvm-extentreport
Source Code Management

Source Code Management

https://github.com/sitture/cucumber-jvm-extentreport

Download cucumber-jvm-extentreport

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
io.cucumber : cucumber-java jar 2.3.1
io.cucumber : cucumber-junit jar 2.3.1

provided (1)

Group / Artifact Type Version
com.aventstack : extentreports jar 3.1.2

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

cucumber-jvm-extentreport

Build Status Maven Central license

A custom cucumber-jvm report formatter using ExtentReports

The current version is only compatible with latest cucumber 2.0.1+.

Note: Use version 2.0.1 with cucumber 1.2.5.

Preconditions

  • Maven / Java 8

Usage

Add the following to your list of dependencies in pom.xml

<dependency>
    <groupId>com.sitture</groupId>
    <artifactId>cucumber-jvm-extentreport</artifactId>
    <version>3.1.0</version>
</dependency>

Add the following if you're using gradle to your build.gradle file.

compile 'com.sitture:cucumber-jvm-extentreport:3.1.0'

Setup - Cucumber Runner

Add the following to your cucumber runner class:

@RunWith(Cucumber.class)
@CucumberOptions(
        features = {"src/test/resources"},
        plugin = {"com.sitture.ExtentFormatter:output/extent-report/index.html", "html:output/html-report"})
public class RunCukesTest {
    @AfterClass
	public static void setup() {
        // Loads the extent config xml to customize on the report.
        ExtentReporter.setConfig("src/test/resources/config.xml");
        // adding system information
        ExtentReporter.setSystemInfo("Browser", "Chrome");
        ExtentReporter.setSystemInfo("Selenium", "v2.53.1");
	}
}

Reports Location

The ExtentFormatter takes the location of reports directory as the parameter. E.g. com.sitture.ExtentFormatter:output/extent-report/index.html will generate the report at output/extent-report/index.html.

Configuration file

Refer here to create the config xml file: ExtentReports Configuration To load the config file:

ExtentReporter.setConfig(new File("your config xml file path"));

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
com.sitture

Sitture

Versions

Version
3.1.2
3.1.1
3.1.0
3.0.7
3.0.0
2.0.2
2.0.1
2.0.0
1.0.1
1.0.0