An open API service indexing awesome lists of open source software.

https://github.com/opengeospatial/ets-swecommon20


https://github.com/opengeospatial/ets-swecommon20

Last synced: 6 months ago
JSON representation

Awesome Lists containing this project

README

          

## 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](http://portal.opengeospatial.org/files/?artifact_id=41157) and related
standards. Tests exist for the conformance classes listed in [site index](https://github.com/opengeospatial/ets-swecommon20/blob/master/src/site/markdown/index.md)

### 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

Test run arguments

https://raw.githubusercontent.com/opengeospatial/ets-swecommon20/master/src/test/resources/examples/spec/simple_components.xml

```
After the configuring, set the starting class to run as java application:
`org.opengis.cite.swecommon20.TestNGController`
![alt text](https://raw.githubusercontent.com/opengeospatial/ets-sensorml20/schematron/src/test/resources/main-class-to-run.png "the starting class to run")

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](https://github.com/opengeospatial/teamengine), 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](https://github.com/opengeospatial/cite/wiki/How-to-create-Docker-Images-of-test-suites#create-docker-image-and-create-and-start-docker-container).

### Files Tested
* [Samples](https://github.com/opengeospatial/ets-swecommon20/tree/master/src/test/resources/examples)

### How to contribute

If you would like to get involved, you can:

* [Report an issue](https://github.com/opengeospatial/ets-swecommon20/issues) such as a defect or
an enhancement request
* Help to resolve an [open issue](https://github.com/opengeospatial/ets-swecommon20/issues?q=is%3Aopen)
* 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