-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d753b41
commit 40ced21
Showing
18 changed files
with
1,305 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
target/ | ||
pom.xml.tag | ||
pom.xml.releaseBackup | ||
pom.xml.versionsBackup | ||
pom.xml.next | ||
release.properties | ||
dependency-reduced-pom.xml | ||
buildNumber.properties | ||
.mvn/timing.properties | ||
|
||
# Avoid ignoring Maven wrapper jar file (.jar files are usually ignored) | ||
!/.mvn/wrapper/maven-wrapper.jar | ||
|
||
.settings | ||
bin/ | ||
build-reports/ | ||
|
||
# Eclipse | ||
.classpath | ||
.project | ||
.settings/ | ||
|
||
# Intellij | ||
.idea/ | ||
*.iml | ||
*.iws | ||
|
||
# Mac | ||
.DS_Store | ||
|
||
# Maven | ||
log/ | ||
target/ | ||
|
||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,28 @@ | ||
# camunda-coverage-generation-groovy | ||
Camunda BPM Unit testing coverage generation using BPMNJS, Groovy, and Camunda Test Assertion Libraries | ||
# Camunda Coverage Generation | ||
|
||
A Unit testing tool for generating Camunda BPMN Coverage diagrams using BPMN.js | ||
|
||
The tool uses Groovy and the Camunda Assertion framework. | ||
|
||
# How it works | ||
|
||
The coverage generation helpers provide easy to use methods to take | ||
"Coverage Snapshots" at any point during a unit test. | ||
|
||
Each snapshot generates "Coverage Data" which is used to generate HTML | ||
files in the build target folder. | ||
|
||
The HTML files have all the required data injected into them and are self-contained. | ||
Each .html file uses the bpmnjs renderer loaded through CDN. | ||
|
||
# How to install | ||
|
||
... | ||
|
||
# Usage example with Spock Framework | ||
|
||
... | ||
|
||
# Output Examples | ||
|
||
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,185 @@ | ||
<?xml version="1.0"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.github.digitalstate</groupId> | ||
<artifactId>camunda-coverage-genertion-groovy</artifactId> | ||
<version>v0.5</version> | ||
<packaging>jar</packaging> | ||
<name>Camunda Converage Generation Groovy</name> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<!-- set the version for camunda BPM here --> | ||
<version.camunda>7.9.0</version.camunda> | ||
<version.h2>1.4.190</version.h2> | ||
<version.java>1.8</version.java> | ||
</properties> | ||
|
||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.camunda.bpm</groupId> | ||
<artifactId>camunda-bom</artifactId> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
<version>${version.camunda}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.camunda.bpm.extension</groupId> | ||
<artifactId>camunda-bpm-assert</artifactId> | ||
<version>1.2</version> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.1</version> | ||
<configuration> | ||
<source>${version.java}</source> | ||
<target>${version.java}</target> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>2.2.1</version> | ||
<configuration> | ||
<descriptorRefs> | ||
<descriptorRef>jar-with-dependencies</descriptorRef> | ||
</descriptorRefs> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>make-assembly</id> | ||
<phase>package</phase> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
|
||
<!-- Mandatory plugins for using Spock --> | ||
<plugin> | ||
<!-- The gmavenplus plugin is used to compile Groovy code. To learn more about this plugin, | ||
visit https://github.com/groovy/GMavenPlus/wiki --> | ||
<groupId>org.codehaus.gmavenplus</groupId> | ||
<artifactId>gmavenplus-plugin</artifactId> | ||
<version>1.5</version> | ||
<executions> | ||
<execution> | ||
<id>compile</id> | ||
<goals> | ||
<goal>compile</goal> | ||
<goal>testCompile</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
|
||
<!-- Optional plugins for using Spock --> | ||
<!-- Only required if names of spec classes don't match default Surefire patterns (`*Test` etc.) --> | ||
<plugin> | ||
<artifactId>maven-surefire-plugin</artifactId> | ||
<version>2.18.1</version> | ||
<configuration> | ||
<useFile>false</useFile> | ||
<includes> | ||
<include>**/*Spec.java</include> | ||
</includes> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
|
||
</build> | ||
|
||
<dependencies> | ||
<!-- Mandatory dependencies for using Spock --> | ||
<dependency> | ||
<groupId>org.spockframework</groupId> | ||
<artifactId>spock-core</artifactId> | ||
<version>1.1-groovy-2.4</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<!-- Optional dependencies for using Spock --> | ||
<dependency> <!-- use a specific Groovy version rather than the one specified by spock-core --> | ||
<groupId>org.codehaus.groovy</groupId> | ||
<artifactId>groovy-all</artifactId> | ||
<version>2.4.10</version> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<!-- camunda process engine --> | ||
<dependency> | ||
<groupId>org.camunda.bpm</groupId> | ||
<artifactId>camunda-engine</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
<!-- OPTIONAL: spin process engine plugin --> | ||
<dependency> | ||
<groupId>org.camunda.bpm</groupId> | ||
<artifactId>camunda-engine-plugin-spin</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!-- OPTIONAL: spin dataformats --> | ||
<dependency> | ||
<groupId>org.camunda.spin</groupId> | ||
<artifactId>camunda-spin-dataformat-json-jackson</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.camunda.spin</groupId> | ||
<artifactId>camunda-spin-dataformat-xml-dom</artifactId> | ||
<version>1.5.1</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<!--camunda BPM assert--> | ||
<dependency> | ||
<groupId>org.camunda.bpm.extension</groupId> | ||
<artifactId>camunda-bpm-assert</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
|
||
|
||
<!-- database --> | ||
<dependency> | ||
<groupId>com.h2database</groupId> | ||
<artifactId>h2</artifactId> | ||
<scope>test</scope> | ||
<version>${version.h2}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.camunda.bpm.extension</groupId> | ||
<artifactId>camunda-bpm-process-test-coverage</artifactId> | ||
<version>0.3.2</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-api</artifactId> | ||
<version>1.7.13</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.slf4j</groupId> | ||
<artifactId>slf4j-simple</artifactId> | ||
<version>1.7.13</version> | ||
<scope>test</scope> | ||
</dependency> | ||
|
||
</dependencies> | ||
</project> |
Oops, something went wrong.