anchor.diff:  mvn clean install -Prest
   ```
   
  +== Standalone tests
  +
  +There is a integration test suite that downloads a wildfly server and deploys *hawkular-alerts* with an embedded
  +cassandra service.
  +These integration tests can be executed using *-Prest* profile:
  +
  +```shell
  +mvn clean install -Pstandalone
  +```
  +
   == Performance tests
   
   There is a performance test suite focus in the *hawkular-alerts-engine* project.
  
positive.code: mvn clean install -Pdocgen
  ```
  
  == Manual setup (optional)
  
  By default, the *-Prest* profile has all necessary to launch a server with dependencies to run the project.
  
  For development/debug scenarios it might be useful to create a manual setup of the environment required to run the
   project.
  
  *Hawkular Alerts* has a dependency on Cassandra 2.1.1 or later. A running Cassandra cluster, which can be a single node,
  is required for unit and integration tests.
  
  1. Setting up Cassandra
  
  ```shell
  1.1. Install https://github.com/pcmanus/ccm
       a. Review its build/install instructions for python package dependencies
          that need to be installed, namely six and pyYaml.
  1.2. ccm create -v 2.1.2 hawkular
  1.3. ccm populate -n 1
  1.4. ccm start
  1.5. mvn install
  ```
  
  2. Prepare *hawkular* in your local environment
  
  ```shell
  git clone https://github.com/hawkular/hawkular.git
  cd hawkular
  mvn clean install -Pdev
  ```
  
  Profile *-Pdev* creates a pre-configured wildfly-8.2.0.Final server with all dependencies needed in
  
  ```shell
  $YOUR_FOLDER/hawkular/dist/target/hawkular-1.0.0-SNAPSHOT/wildfly-8.2.0.Final
  ```
  
  We will call this wildfly server as *$HAWKULAR_HOME*
  
  [start=3]
  3. Prepare *hawkular-alerts* in your local environment
  
  ```shell
  git clone https://github.com/hawkular/hawkular-alerts.git
  cd hawkular-alerts
  mvn clean install -Pdev
  ```
  
  Profile *-Pdev* copies *hawkular-alerts* artifacts into *$HAWKULAR_HOME*. +
  If *hawkular* and *hawkular-alerts* are not in the same folder, you can define the location of wildfly server like:
  
  ```shell
  HAWKULAR_HOME=$PATH_TO/hawkular/dist/target/hawkular-1.0.0-SNAPSHOT/wildfly-8.2.0.Final
  mvn clean install -Pdev -Dorg.hawkular.wildfly.home=$HAWKULAR_HOME
  ```
  
  [start=4]
  4. Start hawkular with your local :
  
  ```shell
  cd $HAWKULAR_HOME
  bin/standalone.sh
  ```
  
  == Debug
  
  1. Set a DEBUG logger in the nest:
  
  [source,xml]
  ----
  <logger category="org.hawkular.alerts">
      <level name="DEBUG"/>
  </logger>
  ----
  
  [start=2]
  2. Use curl to send messages directly to the bus for debugging:
  
  ```shell
  curl -X POST -H "Content-Type: application/json" \
  --data "{\"data\" : [ { \"id\": \"NumericData-01\", \"type\" : \"numeric\", \"value\" : 0.1} ]}" \
  http://localhost:8080/hawkular-bus/message/HawkularAlertData
  
  curl -X POST -H "Content-Type: application/json" \
  --data "{\"data\" : [ { \"id\": \"StringData-01\", \"type\" : \"string\", \"value\" : \"Fred\"} ]}" \
  http://localhost:8080/hawkular-bus/message/HawkularAlertData
  
  curl -X POST -H "Content-Type: application/json" \
  --data "{\"data\" : [ { \"id\": \"Availability-01\", \"type\" : \"availability\", \"value\" : \"UP\"} ]}" \
  http://localhost:8080/hawkular-bus/message/HawkularAlertData
  ```
  
  == License
  
  
negative.code: mvn clean install -Pperf
  ```
  
  == Building REST API documentation
  
  REST API documentation can be generated using *-Pdocgen* profile. +
  The doc is generated under *hawkular-alerts-rest/target* folder.
  