Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space ENGINES1031 and version 10.4.0

...

Table of Contents
maxLevel1

Overview

You can configure 

...

Jtest

 to configure Jtest to associate tests with a broad range of development artifacts, such as requirements, defects, tasks, and feature requests.

To successfully associate unit tests with artifacts, you need to:

...

:

...

...

  1. Enable the artifact association property.
  2. Specify issue tracking tags and configure their URL associations.
  3. Use the tags in the Javadoc

Enabling Artifact Associations

...

See Report Settings for additional information.

...

Using Javadoc Tags

Use Javadoc tags to associate unit tests with artifacts.

Place the tag in the Javadoc to associate it with your tests. The tags used in the Javadoc should be preceded by a @ character.

Code Block
/**
 * @bug 12345
 * @pr 223344
 * @tag1 5533
 */
@Test
public void testSomething()
{
   ...
}


You can also associate a tag with a class. As a result, it will be associated with all the tests within this class. In the following example, tag 9876 is associated with both tests within the Test class, whereas tag 111 is associated only with the testSomething2 test:

Code Block
/**
 * @tag 9876
 */
public class Test {

    testSomething1()
    {
     ...
    }

    /**
     * @tag 111
     */
    testSomething2()
    {
      ...
    }
}

Multiple Associations

You can associate one tag with more than one artifact. Separate multiple associations with a comma that is not followed by a space character.

Code Block
/**
 * @task 1234,2345
 */
@Test
public void testSomething()
{
   ...
}

If you separate the tasks with a comma and a white space, the test will be associated only with the first listed artifact. In the following example, the test is associated only with task 1234:

Code Block
/**
 * @task 1234, 2345
 */
@Test
public void testSomething()
{
   ...
}
Scroll Pagebreak