Skip to main content
Jump to: navigation, search

Difference between revisions of "PDT/Testing Framework"

< PDT
m
Line 8: Line 8:
  
 
== Resources ==
 
== Resources ==
 
+
Unit tests for PDT plug-ins can be found under /cvsroot/tools/org.eclipse.pdt/tests module. The convention is the following:
* [http://wiki.eclipse.org/images/2/20/JUnit_for_PHPIDE.zip PDT Test Framework Tutorial (zip)] <br>
+
 
+
* [[The Three Test Suite Modes]] <br>
+
 
+
* [[List of components to unit test.]] <br>
+
 
+
* [[Migrating to PDT test framework based on Junit4 ]] <br>
+
 
+
 
+
== Unit Test Arguments ==
+
 
+
 
{|border="1"
 
{|border="1"
! Argument !! Meaning
+
! Plug-in Name !! Unit Test Plug-in Name
 
|-
 
|-
| -DBenchmarkTests=true || Whether to enable various benchmark tests (may take a long time to run)
+
| org.eclipse.php.core || org.eclipse.php.core.tests
 
|}
 
|}
  
 +
== Running Unit Tests ==
 +
Each Unit Test plug-in has its own AllTests suite. For running the suite at once right click on it, then select: Run As -> JUnit Plug-in Test. Each test can be run independently in the same manner.
  
 
== Mailing List and RSS ==
 
== Mailing List and RSS ==

Revision as of 06:58, 21 April 2009

Background

"Testing: Early, Often and Automated" (Extreme Programmin Explained by KENT BECK)
The PDT team has accepted the XP ([1]) two principles to increase the cost-effectiveness of testing: double checking and the Defect Cost Increase.
We release the "PDT test framework" that helps us write unit tests for PDT in a very fast way.

"The sooner you find a defect, the cheaper it is to fix".

Resources

Unit tests for PDT plug-ins can be found under /cvsroot/tools/org.eclipse.pdt/tests module. The convention is the following:

Plug-in Name Unit Test Plug-in Name
org.eclipse.php.core org.eclipse.php.core.tests

Running Unit Tests

Each Unit Test plug-in has its own AllTests suite. For running the suite at once right click on it, then select: Run As -> JUnit Plug-in Test. Each test can be run independently in the same manner.

Mailing List and RSS

In order to be updated on test issues, register pdt-unit-test@eclipse.org at https://dev.eclipse.org/mailman/listinfo/pdt-unit-test
also an RSS feed can show you bug status: http://download.eclipse.org/tools/pdt/downloads/rss/center.xml

Unit Test Reports

Nightyly build reports include unit test results.

Access to unit test results:

http://download.eclipse.org/tools/php/downloads/drops/N<date>/results/TEST-php.html


for example http://download.eclipse.org/tools/php/downloads/drops/N20070113/results/TEST-php.html links to January 13th 2007 test results.

Back to the top