donut-junit-adapter

JUnit adapter for donut reporting tool

License

License

Categories

Categories

JUnit Unit Testing
GroupId

GroupId

io.magentys
ArtifactId

ArtifactId

donut-junit-adapter
Last Version

Last Version

0.2.1
Release Date

Release Date

Type

Type

jar
Description

Description

donut-junit-adapter
JUnit adapter for donut reporting tool
Project URL

Project URL

http://maven.apache.org
Source Code Management

Source Code Management

https://github.com/MagenTys/donut-junit-adapter

Download donut-junit-adapter

How to add to project

<!-- https://jarcasting.com/artifacts/io.magentys/donut-junit-adapter/ -->
<dependency>
    <groupId>io.magentys</groupId>
    <artifactId>donut-junit-adapter</artifactId>
    <version>0.2.1</version>
</dependency>
// https://jarcasting.com/artifacts/io.magentys/donut-junit-adapter/
implementation 'io.magentys:donut-junit-adapter:0.2.1'
// https://jarcasting.com/artifacts/io.magentys/donut-junit-adapter/
implementation ("io.magentys:donut-junit-adapter:0.2.1")
'io.magentys:donut-junit-adapter:jar:0.2.1'
<dependency org="io.magentys" name="donut-junit-adapter" rev="0.2.1">
  <artifact name="donut-junit-adapter" type="jar" />
</dependency>
@Grapes(
@Grab(group='io.magentys', module='donut-junit-adapter', version='0.2.1')
)
libraryDependencies += "io.magentys" % "donut-junit-adapter" % "0.2.1"
[io.magentys/donut-junit-adapter "0.2.1"]

Dependencies

compile (6)

Group / Artifact Type Version
org.apache.commons : commons-io jar 1.3.2
com.google.code.gson : gson jar 2.7
org.apache.commons : commons-lang3 jar 3.5
args4j : args4j jar 2.33
org.apache.maven.plugins : maven-source-plugin jar 3.0.1
org.apache.maven.plugins : maven-javadoc-plugin jar 3.0.0-M1

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Build Status Maven Central Javadoc

Donut JUnit adapter is an open source adapter written for the open-source framework donut by the teams at MagenTys & Mechanical Rock and is designed to generate gherkin jsons from JUnit xmls. These gherkin jsons can be processed by donut.

Options

-p or --junit-result-dir-path is a mandatory parameter, and it should be the path of junit result xml directory.
-o or --outputdir is an optional parameter, and it should be the directory for storing the JSON reports.

Use as a dependency

  • Maven
<dependency>
  <groupId>report.donut</groupId>
  <artifactId>donut-junit-adapter</artifactId>
  <version>0.2.2</version>
</dependency>

For older versions:

<dependency>
  <groupId>io.magentys</groupId>
  <artifactId>donut-junit-adapter</artifactId>
  <version>0.2.1</version>
</dependency>

Build from source

prerequisites

  • install java 8+
  • install maven
  • Checkout the project
  • Execute the command mvn clean package to generate the jar file
  • Execute the following command to generate the JSON files:

Usage

java -jar target/donut-nunit-adapter-0.2.2-SNAPSHOT-jar-with-dependencies.jar
-p <path_of_junit_result_xml_dir>
-o <path_of_directory_to_store_JSON_files>

Output Location

If the output directory is specified,
	 the JSON files are written in the folder `junit-reports` in the specified directory
else		 
	if you're executing the jar at the project level
		 the JSON files are written in the folder `junit-reports` in the target folder
	else
		 the JSON files are written in the folder `junit-reports` in the current folder

License

This project is under an MIT license

Powered by: MagenTys & Mechanical Rock

Versions

Version
0.2.1