wiki:GeoGebraTest
Last modified 4 weeks ago Last modified on 04/26/12 08:08:02

The GeoGebra "test" project

Overview

This project includes JUnit Tests for both geogebra commands in general and GeoGebra CAS in special:

  • NoExceptionsTest -- runs all GGB syntaxes, fails on exceptions or null results,
  • CasParserToolsImplTest -- tests parser conversions,
  • GeoGebraCasIntegrationTest -- evaluates CAS commands and verifies the results.

Setup

Eclipse

In order to setup the GeoGebraTest Project, you are required to setup GeoGebra's development environment as well (see below). Please allow half an hour to complete the installation process below:

Run

Run unit tests via 'Right click -> Run/Debug As -> JUnit Test' or 'Alt+Shift+X, T' on a test class, package or the whole project. Maven will automatically take care (download + add to classpath) of the required dependencies.

Troubleshooting

  • You may need to Right-click on the test project and select Configure -> Convert to Maven Project.

Unix command line

In the test directory use the run-junit-tests script. Before doing this, make sure you have Maven and XMLStarlet installed, and you previously built the GeoGebra desktop version by using the make-vanilla-jars script.

Help us improve

Please let us know about any issues you encounter and feel free to enhance the above description as you see fit. Thanks.

Attachments