Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents
outlinetrue

Introduction

This document describes the technical aspects of the testing integrated into Dspace. In it we describe the tools used as well as how to use them and the solutions applied to some issues found during development. It's intended to serve as a reference for the community so more test cases can be created.

You can find extra information at the related GSoC page

Quick Start

If you want to start creating tests straight away do the following:

  • Open dspace-test module
  • Under the test packages, create a new class that extends AbstractUnitTest or AbstractIntegrationTest according to the type of test you want to create
  • Add the different tests methods

To run the tests:

Code Block

mvn package -Dmaven.test.skip=false  //builds DSpace and runs tests

  or
mvn test -Dmaven.test.skip=false     //just runs the tests

Dependencies

There is a set of tools used by all the tests. These tools will be described in this section.

...