Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 5 additions & 22 deletions .github/workflows/compatibility.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,10 @@ jobs:
- 'windows-latest'
- 'macos-latest'
jdk:
- '11'
- '17'
- '21'
camunda-version:
- '7.21' # 2024
- '7.20' # 2023
- '7.19' # 2023
- '7.18' # 2022
- '7.17' # 2022
exclude:
- jdk: '11'
camunda-version: '7.20'
- jdk: '11'
camunda-version: '7.21'
include:
- os: 'ubuntu-latest'
jdk: '8' # Checking legacy JDK 8 support with old Camunda versions
camunda-version: '7.18'
- os: 'ubuntu-latest'
jdk: '8' # Checking legacy JDK 8 support with old Camunda versions
camunda-version: '7.17' # 2022
cibseven-version:
- '1.1.0' # 2024

runs-on: ${{ matrix.os }}
steps:
Expand All @@ -66,8 +49,8 @@ jobs:
- name: Prepare Maven Wrapper
run: chmod +x ./mvnw

- name: Check for valid camunda profile
run: ./mvnw enforcer:enforce -f regression-tests -Drules=requireProfileIdsExist "-Pcamunda-bpm-engine-${{ matrix.camunda-version }}"
- name: Check for valid cibseven profile
run: ./mvnw enforcer:enforce -f regression-tests -Drules=requireProfileIdsExist "-Pcibseven-bpm-engine-${{ matrix.cibseven-version }}"

- name: Build with Maven
run: ./mvnw clean verify -U -B -T4 "-Pregression-test" "-Pcamunda-bpm-engine-${{ matrix.camunda-version }}" -DskipExamples -DskipPlugins
run: ./mvnw clean verify -U -B -T4 "-Pregression-test" "-Pcibseven-bpm-engine-${{ matrix.cibseven-version }}" -DskipExamples -DskipPlugins
12 changes: 9 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: Build the docs
on:
push:
branches:
- master
- main
- documentation
tags:
- '*'
release:
Expand Down Expand Up @@ -69,9 +70,14 @@ jobs:
if: startsWith(github.ref, 'refs/tags/')
run: mike set-default stable --push

# This is for master branch
# This is for main branch
- name: Deploy latest develop snapshot docs to GH pages.
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/main'
run: mike deploy snapshot -u --push

# This is for documentation branch
- name: Deploy latest develop snapshot docs to GH pages.
if: github.ref == 'refs/heads/documentation'
run: mike deploy snapshot -u --push

# This is for release close
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[![](https://img.shields.io/badge/Community%20Extension-An%20open%20source%20community%20maintained%20project-FF4700)](https://github.com/cibseven-community-hub/community)
![Compatible with: Camunda Platform 7](https://img.shields.io/badge/Compatible%20with-Camunda%20Platform%207-26d07c)
[![](https://img.shields.io/badge/Community%20Extension-An%20open%20source%20community%20maintained%20project-E11E19)](https://github.com/cibseven-community-hub)
[![Compatible with: CIB seven](https://img.shields.io/badge/Compatible%20with-CIB%20seven-26d07c)](https://github.com/cibseven/cibseven)


# CIB seven Process Test Coverage
Expand All @@ -24,7 +24,7 @@ This CIB seven community extension **visualises** test process **paths** and **c

## Installation

Add a **Maven test dependency** to your project <a href="https://maven-badges.herokuapp.com/maven-central/org.cibseven.community.process_test_coverage/process-test-coverage-bom"><img src="https://maven-badges.herokuapp.com/maven-central/org.cibseven.community.process_test_coverage/process-test-coverage-bom/badge.svg" align="right" /></a>
Add a **Maven test dependency** to your project <a href="https://maven-badges.herokuapp.com/maven-central/org.cibseven.community.process_test_coverage/process-test-coverage-bom"><img src="https://maven-badges.herokuapp.com/maven-central/org.cibseven.community.process_test_coverage/cibseven-process-test-coverage-bom/badge.svg" align="right" /></a>
0
### JUnit5

Expand Down
22 changes: 10 additions & 12 deletions docs/assets/css/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,35 +9,33 @@

[data-md-color-scheme="default"] {
/*
Camunda colors
CIB colors
*/
--camunda-orange-1: #f38a07;
--camunda-orange-2: #f27d06;
--camunda-orange-3: #f04609;
--primary: #E11E19;
--secondary: #4D6278;
--monochrome-50: #7f7f7f;


/*
Default colors adjustments
*/
--md-primary-fg-color: var(--monochrome-50);
--md-accent-fg-color: var(--camunda-orange-3);
--md-footer-bg-color: var(--camunda-orange-1);
--md-accent-fg-color: var(--primary);
--md-footer-bg-color: var(--secondary);
}

[data-md-color-scheme="slate"] {
/*
Camunda colors
CIB colors
*/
--camunda-orange-1: #f38a07;
--camunda-orange-2: #f27d06;
--camunda-orange-3: #f04609;
--primary: #E11E19;
--secondary: #4D6278;


/*
Default colors adjustments
*/
--md-primary-fg-color: var(--monochrome-50);
--md-accent-fg-color: var(--camunda-orange-3);
--md-footer-bg-color: var(--camunda-orange-1);
--md-accent-fg-color: var(--primary);
--md-footer-bg-color: var(--secondary);
}
Binary file removed docs/assets/img/camunda-logo.png
Binary file not shown.
Binary file added docs/assets/img/cibseven-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions docs/developer-guide/contribution.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# How to Contribute

We'd love you to contribute to this project by filing bugs, helping others on the [issue tracker](https://github.com/cibseven/process-test-coverage/issues), and by contributing features/bug fixes through pull requests.
We'd love you to contribute to this project by filing bugs, helping others on the [issue tracker](https://github.com/cibseven-community-hub/process-test-coverage/issues), and by contributing features/bug fixes through pull requests.

Read more on [how to get the project up and running](#setting-up-the-project-locally).


## Creating Issues

Please use our [issue tracker](https://github.com/cibseven/cibseven-process-test-coverage/issues) for project communication.
Please use our [issue tracker](https://github.com/cibseven-community-hub/cibseven-process-test-coverage/issues) for project communication.
When using the issue tracker:

* Be descriptive when creating an issue (what, where, when and how does a problem pop up)?
Expand All @@ -22,7 +22,7 @@ Create a pull request if you would like to have an in-depth discussion about som
The project is build using [Maven 3](https://maven.apache.org/) as build tool.
To build the project by yourself, go to your cmd line and enter ```mvn clean install``` on the root of the checked out project.

1. git clone https://github.com/cibseven/cibseven-process-test-coverage.git
1. git clone https://github.com/cibseven-community-hub/cibseven-process-test-coverage.git
2. cd cibseven-process-test-coverage/
3. mvn clean install

Expand Down
10 changes: 5 additions & 5 deletions docs/user-guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ possible to configure the output directory for the aggregation report inside the
<goal>aggregate</goal>
</goals>
<configuration>
<reportDirectory>build/camunda-tests</reportDirectory>
<reportDirectory>build/cibseven-tests</reportDirectory>
<outputDirectory>aggregation</outputDirectory>
</configuration>
</execution>
Expand All @@ -69,14 +69,14 @@ plugins {
}

aggregateProcessTestCoverage {
reportDirectory = 'build/camunda-tests'
reportDirectory = 'build/cibseven-tests'
outputDirectory = 'aggregation'
}
```

### Legacy way via system property

We still support the old way to configure the reporting directory via system property `camunda-process-test-coverage.target-dir-root`.
We still support the old way to configure the reporting directory via system property `cibseven-process-test-coverage.target-dir-root`.

#### Maven
```xml
Expand All @@ -85,7 +85,7 @@ We still support the old way to configure the reporting directory via system pro
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemPropertyVariables>
<camunda-process-test-coverage.target-dir-root>${project.build.directory}/my-coverage-reports/</camunda-process-test-coverage.target-dir-root>
<cibseven-process-test-coverage.target-dir-root>${project.build.directory}/my-coverage-reports/</cibseven-process-test-coverage.target-dir-root>
</systemPropertyVariables>
</configuration>
</plugin>
Expand All @@ -96,7 +96,7 @@ We still support the old way to configure the reporting directory via system pro
tasks {
withType<Test> {
systemProperties = mapOf(
"camunda-process-test-coverage.target-dir-root" to "$buildDir/my-coverage-reports/"
"cibseven-process-test-coverage.target-dir-root" to "$buildDir/my-coverage-reports/"
)
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spring:
# spring.datasource.url: jdbc:h2:file:./camunda-h2-database
# spring.datasource.url: jdbc:h2:file:./cibseven-h2-database
datasource:
url: jdbc:h2:mem:camunda;DB_CLOSE_ON_EXIT=FALSE

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spring:
# spring.datasource.url: jdbc:h2:file:./camunda-h2-database
# spring.datasource.url: jdbc:h2:file:./cibseven-h2-database
datasource:
url: jdbc:h2:mem:camunda;DB_CLOSE_ON_EXIT=FALSE

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spring:
# spring.datasource.url: jdbc:h2:file:./camunda-h2-database
# spring.datasource.url: jdbc:h2:file:./cibseven-h2-database
datasource:
url: jdbc:h2:mem:camunda;DB_CLOSE_ON_EXIT=FALSE

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@ class ReportAggregatorPluginTest {
}

aggregateProcessTestCoverage {
reportDirectory = 'build/camunda-tests'
reportDirectory = 'build/cibseven-tests'
outputDirectory = 'aggregation'
}

"""
Files.write(buildFile.toPath(), buildFileContent.toByteArray())
val result = gradleRunner.build()
assertEquals(TaskOutcome.SUCCESS, result.task(":aggregateProcessTestCoverage")?.outcome)
assertResult("build/camunda-tests/aggregation/report.json")
assertResult("build/cibseven-tests/aggregation/report.json")
}

private fun assertResult(expectedFile: String = "build/process-test-coverage/all/report.json") {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import java.util.*
class ReportAggregatorMojo : AbstractMojo(), MavenReport {

companion object {
var TARGET_DIR_ROOT: String? = System.getProperty("camunda-process-test-coverage.target-dir-root")
var TARGET_DIR_ROOT: String? = System.getProperty("cibseven-process-test-coverage.target-dir-root")
}

@Parameter(defaultValue = "target/process-test-coverage")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
//
// assertThat(result.mavenProjectResult.targetProjectDirectory
// .resolve("build")
// .resolve("camunda-tests/aggregation/report.json"))
// .resolve("cibseven-tests/aggregation/report.json"))
// .exists()
// .isRegularFile()
// .content()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<goal>aggregate</goal>
</goals>
<configuration>
<reportDirectory>build/camunda-tests</reportDirectory>
<reportDirectory>build/cibseven-tests</reportDirectory>
<outputDirectory>aggregation</outputDirectory>
</configuration>
</execution>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class CoverageReportUtil {
/**
* Root directory for all coverage reports.
*/
public static String TARGET_DIR_ROOT = System.getProperty("camunda-process-test-coverage.target-dir-root", "target/process-test-coverage/");
public static String TARGET_DIR_ROOT = System.getProperty("cibseven-process-test-coverage.target-dir-root", "target/process-test-coverage/");
public static final String REPORT_RESOURCES = "static";
private static final String REPORT_TEMPLATE = "html/bpmn.report-template.html";

Expand Down
18 changes: 9 additions & 9 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,22 @@
# To run: mkdocs serve
# ###############################

site_name: Camunda Process Test Coverage
site_url: https://camunda-community-hub.github.io/camunda-process-test-coverage/
site_author: Camunda OSS Developers
site_name: CIB seven Process Test Coverage
site_url: https://cibseven-community-hub.github.io/cibseven-process-test-coverage/
site_author: CIB Seven OSS Developers
site_description: >-
This Camunda Platform 7 and Platform 8 ommunity extension visualises test process
This CIB seven Community extension visualises test process
paths and checks your process model coverage ratio. Running typical
tests now leaves html files in your build output.

copyright: Copyright &copy; 2022
copyright: Copyright &copy; 2025

use_directory_urls: false

# Repository
repo_name: camunda-community-hub/camunda-process-test-coverage
repo_url: https://github.com/camunda-community-hub/camunda-process-test-coverage/
edit_uri: edit/develop/docs/
repo_name: cibseven-community-hub/cibseven-process-test-coverage
repo_url: https://github.com/cibseven-community-hub/cibseven-process-test-coverage/
edit_uri: edit/main/docs/

markdown_extensions:
- attr_list
Expand All @@ -40,7 +40,7 @@ theme:
- navigation.sections
- navigation.top # add "navigate to top" page icon on bottom left
- toc.integrate # integrate site TOC into the menu on the left
logo: assets/img/camunda-logo.png
logo: assets/img/cibseven-logo.png
icon:
repo: fontawesome/brands/github
font:
Expand Down
6 changes: 3 additions & 3 deletions regression-tests/junit4-platform-7/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.cibseven.community.process_test_coverage</groupId>
<artifactId>cibseven-process-test-coverage-regression-tests-parent</artifactId>
<version>2.7.0</version>
<version>1.0.0</version>
</parent>

<artifactId>cibseven-process-test-coverage-regression-tests-junit4-platform-7</artifactId>
Expand Down Expand Up @@ -64,8 +64,8 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<groupId>jakarta.annotation</groupId>
<artifactId>jakarta.annotation-api</artifactId>
<scope>test</scope>
</dependency>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.springframework.transaction.PlatformTransactionManager;

/**
* Adapted from: https://github.com/camunda/camunda-bpm-platform/blob/master/engine-spring/src/test/java/org/camunda/bpm/engine/spring/test/configuration/InMemProcessEngineConfiguration.java
* Adapted from: https://github.com/cibseven/cibseven/blob/main/engine-spring/core/src/test/java/org/cibseven/bpm/engine/spring/test/configuration/InMemProcessEngineConfiguration.java
*/
@Configuration
public class InMemProcessEngineConfiguration {
Expand All @@ -34,7 +34,7 @@ public DataSource dataSource() {
SimpleDriverDataSource dataSource = new SimpleDriverDataSource();

dataSource.setDriverClass(org.h2.Driver.class);
dataSource.setUrl("jdbc:h2:mem:camunda-test;DB_CLOSE_DELAY=-1");
dataSource.setUrl("jdbc:h2:mem:cibseven-test;DB_CLOSE_DELAY=-1");
dataSource.setUsername("sa");
dataSource.setPassword("");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.PostConstruct;
import jakarta.annotation.PostConstruct;

import java.util.HashMap;
import java.util.Map;
Expand Down
4 changes: 2 additions & 2 deletions regression-tests/junit5-platform-7/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>org.cibseven.community.process_test_coverage</groupId>
<artifactId>cibseven-process-test-coverage-regression-tests-parent</artifactId>
<version>2.7.0</version>
<version>1.0.0</version>
</parent>

<artifactId>cibseven-process-test-coverage-regression-tests-junit5-platform-7</artifactId>
Expand Down Expand Up @@ -37,7 +37,7 @@
</dependency>
<dependency>
<groupId>org.cibseven.bpm</groupId>
<artifactId>camunda-engine-spring</artifactId>
<artifactId>cibseven-engine-spring</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion regression-tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.cibseven.community.process_test_coverage</groupId>
<artifactId>cibseven-process-test-coverage-root</artifactId>
<version>2.7.0</version>
<version>1.0.0</version>
</parent>

<name>CIB seven Process Test Coverage Regression Tests Parent</name>
Expand Down
2 changes: 1 addition & 1 deletion regression-tests/spring-starter-platform-7/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<parent>
<groupId>org.cibseven.community.process_test_coverage</groupId>
<artifactId>cibseven-process-test-coverage-regression-tests-parent</artifactId>
<version>2.7.0</version>
<version>1.0.0</version>
</parent>

<artifactId>cibseven-process-test-coverage-regression-tests-spring-starter-platform-7</artifactId>
Expand Down
Loading