An open API service indexing awesome lists of open source software.

https://github.com/extent-framework/extentreports-cucumber4-adapter

Cucumber4 Adapter for Extent Framework
https://github.com/extent-framework/extentreports-cucumber4-adapter

cucumber4 extentreports

Last synced: 5 months ago
JSON representation

Cucumber4 Adapter for Extent Framework

Awesome Lists containing this project

README

          

## Cucumber 4 Plugin for ExtentReports

[![Maven Central](https://img.shields.io/maven-central/v/com.aventstack/extentreports-cucumber4-adapter.svg?maxAge=300)](http://search.maven.org/#search|ga|1|g:"com.aventstack")

### Docs ###

See [here](http://extentreports.com/docs/versions/4/java/cucumber4.html) for complete docs.

### Usage ###

To begin using the adapter, add the com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter plugin to the runner.

```java
@RunWith(Cucumber.class)
@CucumberOptions(plugin = {"com.aventstack.extentreports.cucumber.adapter.ExtentCucumberAdapter:"})
public class RunCukesTest {
// ..
}
```

### Attaching Screenshots ###

Screenshots can be saved to a specified in `extent.properties` using:

```
screenshot.dir=test-output/
```

The below setting can be used to specify the relative path from the saved HTML file to link screenshots:

```
screenshot.rel.path=../
```

To learn more about this, refer to [#20](https://github.com/extent-framework/extentreports-cucumber4-adapter/issues/20#issuecomment-601591963).

### License

ExtentReports plugin for Cucumber v4 is Open Source software and released under Apache-2.0.