Skip to content

Commit

Permalink
added test coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
berndruecker committed Aug 28, 2015
1 parent 25c9e5f commit eb1c6dd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 7 deletions.
18 changes: 12 additions & 6 deletions showcases/twitter/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,18 @@
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.camunda.bpm.consulting</groupId>
<artifactId>process-test-coverage</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>test</scope>
</dependency>

<groupId>org.camunda.consulting.snippets</groupId>
<artifactId>process-test-coverage</artifactId>
<version>0.2.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.twitter4j</groupId>
<artifactId>twitter4j-core</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
import java.util.HashMap;
import java.util.Map;

import org.camunda.bpm.consulting.process_test_coverage.ProcessTestCoverage;
import org.camunda.bpm.engine.runtime.ProcessInstance;
import org.camunda.bpm.engine.task.Task;
import org.camunda.bpm.engine.test.Deployment;
import org.camunda.bpm.engine.test.ProcessEngineRule;
import org.camunda.bpm.engine.variable.Variables;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;

Expand Down Expand Up @@ -51,6 +53,14 @@ public void testRejectedPath() {
.isEnded() //
.hasPassed("end_event_tweet_handled", "gateway_approved", "gateway_join", "service_task_send_rejection_notification", "start_event_new_tweet", "user_task_review_tweet");

ProcessTestCoverage.calculate(processInstance, processEngineRule.getProcessEngine());
}


@After
public void calculateCoverage() throws Exception {
// calculate coverage for all tests
ProcessTestCoverage.calculate(processEngineRule.getProcessEngine());
}

}

0 comments on commit eb1c6dd

Please sign in to comment.