Skip to main content
Jump to: navigation, search

Difference between revisions of "PDT/Testing Framework"

< PDT
(Unit Test Reports)
 
(24 intermediate revisions by 5 users not shown)
Line 2: Line 2:
  
 
'''"Testing: Early, Often and Automated"''' (Extreme Programmin Explained by KENT BECK)<br>
 
'''"Testing: Early, Often and Automated"''' (Extreme Programmin Explained by KENT BECK)<br>
The PHPIDE team has excepted the XP ([http://www.extremeprogramming.org/]) two principles to increase the cost-effectiveness of testing: double checking and the Defect Cost Increase.<br>
+
The PDT team has accepted the XP ([http://www.extremeprogramming.org/]) two principles to increase the cost-effectiveness of testing: double checking and the Defect Cost Increase.<br>
We release the "PHPIDE test framework" that helps us write unit tests for PHPIDE in a very fast way.
+
We release the "PDT test framework" that helps us write unit tests for PDT in a very fast way.
 
<p>
 
<p>
 
"The sooner you find a defect, the cheaper it is to fix".
 
"The sooner you find a defect, the cheaper it is to fix".
  
== Resources ==
 
  
* PHPIDE Test Framework Tutorial - [http://wiki.eclipse.org/images/2/20/JUnit_for_PHPIDE.zip] <br>
+
== Resources ==
 +
Unit tests for PDT plug-ins can be found under /gitroot/tools/org.eclipse.pdt/tests module. The convention is the following:
 +
{|border="1"
 +
! Plug-in Name !! Unit Test Plug-in Name
 +
|-
 +
| org.eclipse.php.core || org.eclipse.php.core.tests
 +
|}
  
* [[The Three Test Suite Modes]] <br>
+
== 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.
  
* [[List of components to unit test.]] <br>
+
See also: [[PDT/Testing Framework - PDTT]]
  
== Unit Test Reports ==
+
[[Category:PDT]]
* [[Media:Bare Junit Report.zip]] (first draft)
+

Latest revision as of 16:12, 21 October 2015

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 /gitroot/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.

See also: PDT/Testing Framework - PDTT

Back to the top