Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html lang="en">
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2006, 2011. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Test Tab</title>
<link href="../../book.css" rel="stylesheet" type="text/css">

<h1>Test Tab</h1>
<p>The <strong>Test Tab</strong> specifies the tests to run and the level of JUnit test runner to use. </p>
<img src="../../images/launchers/launcher_junit_test.png" alt="JUnit Plug-in Test" >

<h2>Tests to Run</h2>
<p>The <em>JUnit Plug-in Test</em> launcher allows you to run single tests or collections of tests <em>en masse</em>. </p>
<p>If the individual test option is chosen, you have to specify the fully-qualified test class name along with the name of the plug-in project where the class is located. The launcher can give you more granularity for single tests by allowing you to choose to run a single method from within a test class.</p>
<p>You also have the option to run all tests housed within a container (project, package or a source folder). In addition to the convenience of running an arbitrary number of test cases with a single click, this option gives you the additional flexibility of not having to update the launch configuration every time you add a test class to your suite. The list of tests is dynamically recomputed prior to every launch based on the current contents of the container. </p>

<h2>Test Runner</h2>
<p>Eclipse provides two JUnit test runners:</p>
  <li><strong>JUnit 3</strong>: uses <em>JUnit 3.8.1</em>. This is the default test runner. </li>
  <li><strong>JUnit 4</strong>:   uses <em>JUnit 4.1.0</em> and is available only if you are running Eclipse with a JRE version that is greater than or equal to 1.5.</li>

<p><img src="../../../images/ngrelr.png" alt="Related reference"></p>
  <a href="eclipse_application_launcher.htm">Eclipse Application Launcher</a><br>
  <a href="junit_launcher.htm">JUnit Plug-in Test Launcher</a><br>
  <a href="equinox_launcher.htm">OSGi Framework Launcher</a><br>
  <a href="junit_test.htm">Junit Launcher Test Tab</a><br>
  <a href="junit_main.htm">Main Tab</a><br>
  <a href="arguments.htm">Arguments Tab</a><br>
  <a href="plugins.htm">Plug-ins Tab</a><br>
  <a href="configuration.htm">Configuration Tab</a><br>
  <a href="tracing.htm">Tracing Tab</a><br>
  <a href="environment.htm">Environment Tab</a><br>
  <a href="common.htm">Common Tab</a>


New to GrepCode? Check out our FAQ X