Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "CDT/Obsolete/Testing"

< CDT‎ | Obsolete
(New page: == Junit Automated Tests == Everything starts at the test.xml file in the org.eclipse.cdt.testing plug-in, which lists the test suites that get run. == How to add a Test == Adding JUni...)
 
(Junit Automated Tests)
Line 3: Line 3:
 
Everything
 
Everything
 
starts at the test.xml file in the org.eclipse.cdt.testing plug-in,
 
starts at the test.xml file in the org.eclipse.cdt.testing plug-in,
which lists the test suites that get run.  
+
which lists the test suites that get run.
 +
 
 +
Junits run on a build machine nightly after build is created.
 +
 
 +
Build machine configuration:
 +
SUSE Linux version 2.6.*-ppc64
 +
gcc version 4.1.2 20070115
  
 
== How to add a Test ==
 
== How to add a Test ==

Revision as of 14:00, 24 April 2008

Junit Automated Tests

Everything starts at the test.xml file in the org.eclipse.cdt.testing plug-in, which lists the test suites that get run.

Junits run on a build machine nightly after build is created.

Build machine configuration:

SUSE Linux version 2.6.*-ppc64 
gcc version 4.1.2 20070115

How to add a Test

Adding JUnits is as simple as adding tests to existing suites or adding new suites.

How to run Junit tests from IDE

If tests are written properly you should be able to right click on any java file that contains test suite and select Run As->JUnit Plug-in Test..

To find root file for project open text.xml or corresponding project, for example org.eclipse.cdt.core.tests and find property "classname" in target "suite". For project above it is org.eclipse.cdt.core.suite.AutomatedIntegrationSuite.

Back to the top