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:
- Install the Eclipse Maven plugin as described at http://kb.sonatype.org/entries/20914842-how-do-i-download-m2eclipse (get the latest m2e release).
- Import the GeoGebra projects as explained on the SetUp page, and also the test project.
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
-
test-project-setup1.png
(7.6 KB) -
added by alexander.hartl 4 months ago.
GeoGebraTest with error
-
test-project-setup2.png
(7.6 KB) -
added by alexander.hartl 4 months ago.
GeoGebraTest without error
