opengeospatial / teamengine

TEAM Engine (Test, Evaluation, And Measurement Engine) is an engine for testing web services and other resources written in JAVA. It executes test scripts written in Compliance Test Language (CTL), TestNG and other languages. It is lightweight and easy to run as a command line or to setup as a service. It can be used to test any type of service or encoding. It is also the official tool used by the Open Geospatial Consortium (OGC) for compliance testing.
Apache License 2.0
45 stars 41 forks source link

Unit test TEPathTest fails #522

Closed dstenger closed 2 years ago

dstenger commented 2 years ago

Describe the bug Current master of TEAM Engine cannot be built as unit test TEPathTest is failing:

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.002 sec <<< FAILURE! - in com.occamlab.te.util.TEPathTest
com.occamlab.te.util.TEPathTest  Time elapsed: 0.002 sec  <<< ERROR!
java.lang.NullPointerException
    at com.occamlab.te.util.TEPathTest.initialize(TEPathTest.java:75)

To Reproduce Steps to reproduce the behavior:

  1. Check out source code.
  2. Execute mvn clean install.

Expected behavior Build shall finish successfully.

bpross-52n commented 2 years ago

With the new path validation in place, two additional environment variables will have to be set: TE_BASE=can be an empty directory TE_BUILD=root of the Teamengine Java project Otherwise, certain resources cannot be accessed by the tests. I will add documentation for this in the installation.html, if that is ok.