Overview

ActiveWAFL can help simplify unit testing by providing high-level interfaces and useful command-line scripts for Windows and Linux.

Unit Testing

In the Bin folder of every ActiveWAFL application is a script called RunUnitTests (RunUnitTests.bat in Windows).
Running this script will execute any unit tests you have placed in the Tests folder.
To run the script, you will need to turn on a Unit Testing engine extension in the Extensions.syrp file.

You can run the RunUnitTests script manually from the command line or your can automate it from any language that has access to the shell (including Ant).

If the unit test succeeds, you will see output similar to the following.


******************************
 ActiveWAFL Application
UNIT TESTING IN PROGRESS...
06/30/2014
PhpUnit
Test folder: C:/xampp/vhosts/myapp.com/MyApp/Tests/Unit
Output File: C:/xampp/apache/tmp/myapp/WaflAppTestOutput.xml
Bootstrap file: C:/xampp/vhosts/myapp.com/MyApp/Tests/Bootstrapper.
php
running php C:\xampp\vhosts\shared\Wafl\Extensions\PhpUnit/phpunit.phar --log-ju
nit "C:/xampp/apache/tmp/MyApp/WaflAppTestOutput.xml" --bootstrap "C:/xampp
/vhosts/MyApp.com/MyApp/Tests/Bootstrapper.php" "C:/xampp/vhosts/
MyApp.com/MyApp/Tests/Unit"


          ******** **     **   ******    ******  ********  ********  ********
         **////// /**    /**  **////**  **////**/**/////  **//////  **//////
        /**       /**    /** **    //  **    // /**      /**       /**
        /*********/**    /**/**       /**       /******* /*********/*********
        ////////**/**    /**/**       /**       /**////  ////////**////////**
               /**/**    /**//**    **//**    **/**             /**       /**
         ******** //*******  //******  //****** /******** ********  ********
        ////////   ///////    //////    //////  //////// ////////  ////////


Summary
******************************
Total assertions: 0
Total failures: 0
Total errors: 0
******************************
RunUnitTests: Sucessfully finished running
 

Integration Testing

In the Bin folder of every ActiveWAFL application is a script called RunIntegrationTests (RunIntegrationTests.bat in Windows).
Running this script will execute any integration tests you have placed in the Tests folder.
To run the script, you will need to turn on an Integration Testing engine extension in the Extensions.syrp file.

You can run the RunIntegrationTests script manually from the command line or your can automate it from any language that has access to the shell (including Ant).

If the integration test succeeds, you will see output similar to the following.


******************************
ActiveWAFL Application
INTEGRATION TESTING IN PROGRESS...
06/30/2014
Selenium
PhpUnit
Test folder: C:/xampp/vhosts/myapp.com/MyApp/Tests/Integration
Output File: C:/xampp/apache/tmp/MyApp/WaflAppTestOutput.xml
Bootstrap file: C:/xampp/vhosts/myapp.com/MyApp/Tests/Bootstrapper.
php
running php C:\xampp\vhosts\shared\Wafl\Extensions\PhpUnit/phpunit.phar --log-ju
nit "C:/xampp/apache/tmp/MyApp/WaflAppTestOutput.xml" --bootstrap "C:/xampp
/vhosts/myapp.com/MyApp/Tests/Bootstrapper.php" "C:/xampp/vhosts/my
app.com/MyApp/Tests/Integration"


          ******** **     **   ******    ******  ********  ********  ********
         **////// /**    /**  **////**  **////**/**/////  **//////  **//////
        /**       /**    /** **    //  **    // /**      /**       /**
        /*********/**    /**/**       /**       /******* /*********/*********
        ////////**/**    /**/**       /**       /**////  ////////**////////**
               /**/**    /**//**    **//**    **/**             /**       /**
         ******** //*******  //******  //****** /******** ********  ********
        ////////   ///////    //////    //////  //////// ////////  ////////


Summary
******************************
Total assertions: 0
Total failures: 0
Total errors: 0
******************************
RunIntegrationTests: Sucessfully finished running