Skip to content

Releases: DigitalState/camunda-coverage-generation

Add setter and getter for CoverageSnapshots hashmap property

20 Oct 02:55
Compare
Choose a tag to compare

Allows re-setting the coveragesnapshops due to manual modification use cases during the post-class processing

Fixes for Jar usage

10 Oct 19:23
Compare
Choose a tag to compare

Fixes have been implemented for Jar usage. Previous versions as of v0.10+ were causing issues of unable to resolve Paths when the path was for a file inside of the jar. This has been resolved with streams.

Cleanup and added ability to customize CSS, JS and Template Generation

10 Oct 11:42
Compare
Choose a tag to compare

With this release there are multiple cleanups and optimizations and the Following:

  1. Font-awesome has been added
  2. CSS and JS can now be customized on a per saveCoverageSnapshots() basis. See: https://github.com/DigitalState/camunda-coverage-generation#customizations-to-css-and-js
  3. Template Generation can also be changed if you wish using the same principle as the CSS and JS
  4. CSS and JS have been moved into the bpmnjs folder under target/bpmnjs, this means that the html file will not be a standalone file any longer.

Fix for version naming

14 Sep 15:30
Compare
Choose a tag to compare
v0.9

fix version naming + version bump

Better usage of bpmnjs

13 Sep 17:24
Compare
Choose a tag to compare
  • Cleaned up spacing
  • Refined code that generates the local bpmnjs file so that only 1 version of the file is used. The bpmnjs folder is not located in the parent of the bpmn-coverage folder, rather than a copy of the bpmnjs file being located in each test folder.
  • version upped to 0.8
  • Updated readme with new version number

TLDR: mainly this refines the bpmnjs local file usage so only 1 copy of the file is generated for the entire test suite rather than 1 bpmnjs file for each test class.

Updated from Community Feedback

29 Aug 21:52
Compare
Choose a tag to compare
  • Add folder generation based on class name: Fully Qualified class names are now used to group the tests. This ensures duplicate file names do not cause a issue.
  • add local and CDN support for bpmn.js: Can define which source for the bpmn.js library to use within the .html files.
  • Update tests to show the new usage.
  • Update version to 0.7
  • Fixed typo in documentation for the artifact name in the How to Install section.

Java support: CoverageBuilderJavaBridge class

29 Aug 13:18
Compare
Choose a tag to compare

New class has been added allowing JUnit / pure java unit testing. Groovy is still required for "under the hood", but a java class can now implement the coverage builder:

package coveragetest;

import io.digitalstate.camunda.coverage.bpmn.CoverageBuilderJavaBridge;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.test.Deployment;
import org.camunda.bpm.engine.test.ProcessEngineRule;

import static org.camunda.bpm.engine.test.assertions.ProcessEngineTests.*;

import org.junit.Rule;
import org.junit.Test;

/**
 * @author Daniel Meyer
 * @author Martin Schimak
 */
public class SimpleTestCase {

    @Rule
    public ProcessEngineRule rule = new ProcessEngineRule("camunda_config/camunda.cfg.xml");
    CoverageBuilderJavaBridge coverageBuilder = new CoverageBuilderJavaBridge();

    @Test
    @Deployment(resources = {"testProcess.bpmn"})
    public void shouldExecuteProcess() {
        // Given we create a new process instance
        ProcessInstance processInstance = runtimeService().startProcessInstanceByKey("testProcess");
        // Then it should be active
        assertThat(processInstance).isActive();
        // And it should be the only instance
        assertThat(processInstanceQuery().count()).isEqualTo(1);
        // And there should exist just a single task within that process instance
        assertThat(task(processInstance)).isNotNull();

        // When we complete that task
        complete(task(processInstance));
        // Then the process instance should be ended
        assertThat(processInstance).isEnded();
        coverageBuilder.coverageSnapshot(processInstance);
        coverageBuilder.saveCoverageSnapshots();

    }

}

Initial Release for community testing

16 Aug 01:35
Compare
Choose a tag to compare

Use jitpack.io to install in maven pom.xml file