Skip to content

Testing

Jonas Hungershausen edited this page Aug 15, 2019 · 1 revision

Dartboard has automatic tests in place to ensure that everything works as expected. These tests are run on every release build and every PR submitted. This helps catching bugs and mistakes early and efficiently.

Preface

If you submit a pull request to the plugin please make sure to also add appropriate tests.

For testing we use a number of libraries and tools:

  • Hamcrest

  • JUnit 4

  • Mockito

  • RedDeer - for UI tests

Not every feature requires UI tests to be executed and not everything can be tested without UI tests. So not every pull request has to include UI tests.

Setting Up

There are a number of dependencies that need to be installed in order to have the required dependencies available.

Go to Help>Install new Software…​, select --All Available Sites-- and install Eclipse Test Framework.

RedDeer is available from a separate update site. Add http://download.eclipse.org/reddeer/releases/latest as a new update site.

Install the following features:

  • RedDeer Runtime/API (both Eclipse & SWT)

  • RedDeer UI Feature

  • RedDeer Recorder Feature

Optionally you can install the Source packages as well.

Clone this wiki locally