Development

Changeset 21671

You must first sign up to be able to contribute.

Changeset 21671

Show
Ignore:
Timestamp:
09/03/09 18:21:45 (4 years ago)
Author:
StephenMelrose
Message:

[sfTestsToXUnitPlugin] Added content to README

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfTestsToXUnitPlugin/trunk/README

    r21262 r21671  
    11# sfTestsToXUnitPlugin # 
    22 
    3 Thi sfTestsToXUnitPlugin adds a new task which runs all unit and functional tests, and formats the output into XUnit format for CruiseControl, phpUnderControl, etc. 
     3The sfTestsToXUnitPlugin adds a new task which runs all unit and functional tests, and formats the output into XUnit format for CruiseControl, phpUnderControl, etc. 
     4 
     5## Installation ## 
     6 
     7  * Install the plugin 
     8     
     9        ./symfony plugin:install sfTestsToXUnitPlugin --release=1.0.0 
     10   
     11  * Configure your project in CruiseControl 
     12    * Add new task into your build to use sfTestsToXUnitPlugin 
     13   
     14      // build.xml 
     15      // ... 
     16      <target name="runtests" > 
     17        <echo message="Execute test:all-to-xunit" /> 
     18        <exec executable="/path/to/php" dir="/export/folder/" failonerror="true"> 
     19          <arg value="/export/folder//symfony" /> 
     20          <arg value="test:all-to-xunit" /> 
     21          <arg value="--path=/export/folder/log/xunit.xml" /> 
     22        </exec> 
     23      </target> 
     24      // ... 
     25   
     26  * Edit your CruiseControl project configuration to tell CruiseControl to use the log file generated by sfTestsToXUnitPlugin 
     27   
     28      // config.xml 
     29      // ... 
     30      <project name="myproject"> 
     31        // ... 
     32        <log logdir="/cruisecontrol/logs/myproject"> 
     33          <merge dir="/export/folder/log/" /> 
     34        </log> 
     35        // ... 
     36      </project> 
     37      // ... 
     38   
     39    This is the most important step because without it CruiseControl will not use the log file generated by sfTestsToXUnitPlugin