Skip to content

opengeospatial/ets-swecommon20

Repository files navigation

SWECommon 2.0 Conformance Test Suite

Scope

This test suite verifies that a SWE Common Data Model Encoding Standard (SWECommon) 2.0 implementation conforms to OGC 08-094r1 and related standards. Tests exist for the conformance classes listed in site index

How to run the test

1. via IDE (Eclipse, Netbeans, etc.)

Clone this project into the IDE. Set the instance location in the config file which located at the user home folder by default:

${user.home}/test-run-props.xml

You can modify the value of the "entry" element with the key "iut" to locate the testing instance, like:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties version="1.0">
  <comment>Test run arguments</comment>
  <!--Modify the instance location here-->
  <entry key="iut">https://raw.githubusercontent.com/opengeospatial/ets-swecommon20/master/src/test/resources/examples/spec/simple_components.xml</entry>
</properties>

After the configuring, set the starting class to run as java application: org.opengis.cite.swecommon20.TestNGController alt text

The TestNG results file (testng-results.xml) will be written to a subdirectory in ${user.home}/testng/ having a UUID value as its name.

2. via console

Build the source code with Maven in the shell:

mvn package

Execute the build artifact under the target folder:

java -jar ets-swecommon20-1.0-SNAPSHOT-aio.jar [-o|--outputDir $TMPDIR] [test-run-props.xml]

3. OGC test harness

Use TEAM Engine, the official OGC test harness.

4. Docker

This test suite comes with a Dockerfile which can be used to easily setup the OGC test harness with the test suite. Details can be found on Create Docker Image and create and start Docker Container.

Files Tested

How to contribute

If you would like to get involved, you can:

  • Report an issue such as a defect or an enhancement request
  • Help to resolve an open issue
  • Fix a bug: Fork the repository, apply the fix, and create a pull request
  • Add new tests: Fork the repository, implement (and verify) the tests on a new topic branch, and create a pull request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published