chore(test-db-upgrade): exclude SchemaLogEnsureSqlScriptTest
from upgrade test suite as the patches of current minor are not applied when setting up the schema for the tests so whenever a patch is introduced this test will start to fail the scenario is still tested as a unit test Related to CAM-10616
|3 days ago|
|bom||3 days ago|
|database||2 weeks ago|
|distro||4 days ago|
|engine||5 days ago|
|engine-cdi||2 weeks ago|
|engine-dmn||1 week ago|
|engine-plugins||2 weeks ago|
|engine-rest||3 days ago|
|engine-spring||2 weeks ago|
|examples/invoice||2 weeks ago|
|javaee||2 weeks ago|
|parent||2 weeks ago|
|qa||3 days ago|
|settings||4 months ago|
|typed-values||2 weeks ago|
|webapps/h2-webapp||2 weeks ago|
|.gitignore||2 years ago|
|.travis.yml||3 years ago|
|CONTRIBUTING.md||4 months ago|
|LICENSE||4 months ago|
|NOTICE||2 months ago|
|README.md||2 months ago|
|pom.xml||2 weeks ago|
camunda BPM platform is a flexible framework for workflow and process automation. It’s core is a native BPMN 2.0 process engine that runs inside the Java Virtual Machine. It can be embedded inside any Java application and any Runtime Container. It integrates with Java EE 6 and is a perfect match for the Spring Framework. On top of the process engine, you can choose from a stack of tools for human workflow management, operations & monitoring.
camunda BPM platform provides a rich set of components centered around the BPM lifecycle.
In contrast to other vendor BPM platforms, camunda BPM strives to be highly integrable and embeddable. We seek to deliver a great experience to developers that want to use BPM technology in their projects.
Out of the box, camunda BPM provides infrastructure-level integration with Java EE Application Servers and Servlet Containers.
Most of the components that make up the platform can even be completely embedded inside an application. For instance, you can add the process engine and the REST Api as a library to your application and assemble your custom BPM platform configuration.
camunda BPM is available on maven central but for development of the platform, you have to add our public nexus repository to your maven settings.xml. Add the following lines to it:
<profiles> <profile> <id>camunda-bpm</id> <repositories> <repository> <id>camunda-bpm-nexus</id> <name>camunda-bpm-nexus</name> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> <url>https://app.camunda.com/nexus/content/groups/public</url> </repository> </repositories> </profile> </profiles> <activeProfiles> <activeProfile>camunda-bpm</activeProfile> </activeProfiles>
Apache Maven 3 and Java JDK 7/8 are prerequisites for building camunda BPM platform. Once you have setup Java and Maven, run
mvn clean install
This will build all the modules that make up the camunda BPM platform but will not perform any integration testing. After the build is completed, you will find the distributions under
distro/tomcat/distro/target (Apache Tomcat 7 Distribution) distro/jbossas7/distro/target (JBoss AS 7 Distribution)
The integration testsuites are located under
qa/. There you’ll find a folder named XX-runtime for each server runtime we support. These projects are responsible for taking a runtime container distribution (ie. Apache Tomcat, JBoss AS …) and configuring it for integration testing. The actual integration tests are located in the
In order to run the integration tests, first perform a full install build. Then navigate to the
We have different maven profiles for selecting
In order to configure the build, compose the profiles for runtime container, testsuite, database. Example:
mvn clean install -Pengine-integration,jboss,h2
For using wildfly as the runtime container you have to additionally specify the wildfly version: wildfly8, wildfly10, wildfly11, wildfly12 or wildfly13. Example:
mvn clean install -Pengine-integration,wildfly,wildfly10,h2
If you want to test against an XA database, just add the corresponding XA database profile to the mvn cmdline above. Example:
mvn clean install -Pengine-integration,jboss,postgresql,postgresql-xa
You can select multiple testsuites but only a single database and a single runtime container. This is valid:
mvn clean install -Pengine-integration,webapps-integration,tomcat,postgresql
There is a special profile for JBoss Application Server:
mvn clean install -Pengine-integration,h2,jboss-domain
Due to the fact that the number of unit tests in the camunda engine increases daily and that you might just want to test a certain subset of tests the maven-surefire-plugin is configured in a way that you can include/exclude certain packages in your tests.
There are two properties that can be used for that:
When using the includes only the packages listed will be include and with excludes the other way around. For example calling Maven in the engine directory with
mvn clean test -Dtest.includes=bpmn
will test all packages that contain “bpmn”. This will include e.g.
*api.bpmn*. If you want to limit this further you have to get more concrete. Additionally, you can combine certain packages with a pipe:
mvn clean test -Dtest.includes=bpmn|cmmn
will execute all bpmn and cmmn tests.
The same works for excludes. Also, you can combine both:
mvn clean test -Dtest.includes=bpmn -Dtest.excludes=bpmn.async
Please note that excludes take precedence over includes.
To make it easier for you we created some profiles with predefined in- and excludes:
So simply call
mvn clean test -PtestExceptBpmn
and all the bpmn testcases won’t bother you any longer.