Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
anshooarora committed Jul 25, 2020
1 parent 86bd7f8 commit 799eb25
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 35 deletions.
63 changes: 32 additions & 31 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
[![Maven Central](https://img.shields.io/maven-central/v/com.aventstack/extentreports-testng-adapter.svg?maxAge=300)](http://search.maven.org/#search|ga|1|g:"com.aventstack")
## ExtentReports Plugin for TestNG [![Maven Central](https://img.shields.io/maven-central/v/com.aventstack/extentreports-testng-adapter.svg?maxAge=300)](http://search.maven.org/#search|ga|1|g:"com.aventstack")

### Extent Framework TestNG Adapter
### Docs

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

#### Usage

See the [Listeners](http://extentreports.com/docs/versions/4/java/testng.html#listeners) section for usage instructions.

#### Examples
### Examples

An example project is available [here](https://github.com/extent-framework/examples/tree/master/extentreports-testng-adapter-example) to understand the usage.

Expand All @@ -35,36 +33,39 @@ public class SimpleAssertTests {
}
```

### Config

Configuration can be added under `src/test/resources` as shown [here](https://github.com/extent-framework/examples/tree/master/extentreports-testng-adapter-example/src/test/resources). Note the contents of `extent.properties` which can be used to enable/disable reporters, set path to the configuration file, and also to output to a desired location.

```
extent.reporter.avent.start=false
extent.reporter.bdd.start=false
extent.reporter.cards.start=false
extent.reporter.email.start=false
extent.reporter.html.start=true
# spark-reporter
extent.reporter.spark.start=true
extent.reporter.spark.config=
extent.reporter.spark.out=test-output/SparkReport/Index.html
# klov-reporter
extent.reporter.klov.start=false
extent.reporter.logger.start=false
extent.reporter.tabular.start=false
extent.reporter.avent.config=
extent.reporter.bdd.config=
extent.reporter.cards.config=
extent.reporter.email.config=
extent.reporter.html.config=src/test/resources/html-config.xml
extent.reporter.klov.config=
extent.reporter.logger.config=
extent.reporter.tabular.config=
extent.reporter.avent.out=test-output/AventReport/
extent.reporter.bdd.out=test-output/BddReport/
extent.reporter.cards.out=test-output/CardsReport/
extent.reporter.email.out=test-output/EmailReport/ExtentEmail.html
extent.reporter.html.out=test-output/HtmlReport/ExtentHtml.html
extent.reporter.logger.out=test-output/LoggerReport/
extent.reporter.tabular.out=test-output/TabularReport/
extent.reporter.klov.config=src/test/resources/klov.properties
# json-reporter
extent.reporter.json.start=false
extent.reporter.json.out=test-output/JsonReport/Extent.json
```

#### Klov

If you are using Klov (version 1.0+), extra configuration would be required, which can be loaded from `extent.reporter.klov.config` above.

```
mongodb.host=127.0.0.1
mongodb.port=27017
mongodb.uri=
klov.host=http://127.0.0.1
klov.port=80
klov.project.name=ProjectName
klov.report.name=
```

#### License
### License

extentreports-testng-adapter is MIT licensed.
TestNG plugin for ExtentReports is open-source software and licensed under Apache-2.
11 changes: 8 additions & 3 deletions pom-nexus.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.aventstack</groupId>
<artifactId>extentreports-testng-adapter</artifactId>
<version>1.0.8-SNAPSHOT</version>
<version>1.2.0</version>
<name>extentreports-testng-adapter</name>
<url>http://extentreports.com</url>
<description>TestNG adapter for Extent Framework</description>
Expand Down Expand Up @@ -42,7 +42,12 @@
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>extentreports</artifactId>
<version>4.1.5</version>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>com.aventstack</groupId>
<artifactId>klov-reporter</artifactId>
<version>5.0.0</version>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
Expand All @@ -52,7 +57,7 @@
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<version>6.14.3</version>
<version>7.1.0</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.aventstack</groupId>
<artifactId>extentreports-testng-adapter</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.2.0</version>
<name>extentreports-testng-adapter</name>
<url>http://extentreports.com</url>
<description>TestNG adapter for Extent Framework</description>
Expand Down

0 comments on commit 799eb25

Please sign in to comment.