Building and testing
The Eclipse ESCET software can be built using Maven/Tycho. The build will build every individual plugin and feature, as well as the update site, product and all documentation. Manually run it in one of the following ways:
-
In an Eclipse-based development environment, select to open the Run Configurations dialog. From the list at the left, under Maven Build, select the build launch configuration, and click the Run button to run the build.
Additional launch configurations are available to build documentation projects separately.
-
On Windows, in a command prompt, with the root of the Git repository as current directory, enter
.\build.cmd
and press Enter. This requires Maven to be available on your system (to be on yourPATH
). Make sure to use the same Java and Maven versions as for the Eclipse-based development environment. -
On Linux/macOS, in a shell, with the root of the Git repository as current directory, enter
./build.sh
and press Enter. This requires Maven to be available on your system (to be on yourPATH
). Make sure to use the same Java and Maven versions as for the Eclipse-based development environment.
Builds are in certain cases also automatically executed on our build server:
If they are not automatically executed, login to Jenkins, open the desired build and select Scan GitLab Project Now to force GitLab to scan for new branches, commits, etc.
Run tests in one of the following ways:
-
As part of the build, all tests will be performed as well.
-
A single test-all launch configuration to run all tests is available under the Launch Group section of the Run Configurations dialog.
-
Launch configurations to run various subsets of the tests are also available, under the JUnit Test and JUnit Plug-in Test sections of the Run Configurations dialog.
When a tool has been updated, the test outputs may change. The expected outputs can be updated as follows.
-
Run the integration test under the JUnit Plug-in Test section of the Run Configurations dialog (e.g. test-cif-integration).
-
If an output differs from the expected output, the output is saved with a
.real
postfix. -
Run the copy all script under JUnit Plug-in Test section to replace the expected outputs with the test outputs (e.g. test-cif-integration-copy-all).
-
Run the integration test again to ensure that all expected test outputs have been updated.
-
Before committing the changes, check whether the differences are as expected.