Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

All activiti developers have permission to start a new build manually.

Running the database tests

Goal: run the test suite against a specific database.

Specify properties in command line:

No Format
mvn -Pcheck clean install -Ddatabase=mysql -Djdbc.driver=com.mysql.jdbc.Driver -Djdbc.url=jdbc:mysql://localhost:3309/activiti -Djdbc.username=activiti -Djdbc.password=activiti

Alternatively, you can specify the properties in a local file. This information goes into a file called 'mysql.properties'. Please create the following folder structure:

No Format
/{user_home}/.activiti/jdbc

Within this directoy create a new file mysql.properties like this:

No Format

jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://<hostname>:<port>/activiti
jdbc.username=qa
jdbc.password=qa

Running the upgrade tests

Running the server tests

Running QA tests

Tested database systems so far are:

...

  • Checkout activiti project from SVN 
    Before you can run the test suite, you need to [checkout activiti|http://docs.codehaus.org/display/ACT/Developers+Guide#DevelopersGuide-Buildingadistribution]. The qa tests are located in the projects 'activiti-engine' and in 'activiti-engine-examples', but you do not need to start them from there separately. You will start the tests from the quality assurance project. But before we have to create a new database schema and user.
    * Create a new schema and user 
    First we need to create a new schema and a new user for the database connection. We set the schema name to 'activiti'.The users name and password are 'qa'! If you need guidance on how to create a new schema and user for MySQL, please consult their [documentation|http://dev.mysql.com/doc/]. Now we need to make sure that the test suite gets a database connection.
    * Create a database connection file 
    You need to provide databse connection properties for the test suite to be executed. This information goes into a file called 'mysql.properties'. Please create the following folder structure:
    No Format
    /{user_home}/.activiti/jdbc
    Within this directoy create a new file mysql.properties like this:
    No Format
    
    jdbc.driver=com.mysql.jdbc.Driver
    jdbc.url=jdbc:mysql://<hostname>:<port>/activiti
    jdbc.username=qa
    jdbc.password=qa
    
    Run the test suite

Now we are ready to run the qa script. Navigate to /activiti/trunk/qa/ci and run the script that is suitable for your operating system like this:

...