opengeospatial / ets-sta10

Repository for the Executable Test Suite for OGC Sensor Things API
Other
6 stars 8 forks source link

Running tests from command line? #30

Closed bertt closed 5 years ago

bertt commented 7 years ago

Whats the best way to run the tests from command line?

I did the following (similar to the ets-kml2-0.6 tests)

git clone https://github.com/opengeospatial/ets-sta10.git
cd ets-sta10
mvn package 
cd target
java -jar ets-sta10-0.8-SNAPSHOT-aio.jar ../src/main/config/test-run-props.xml

but got error 'error message: "no main manifest attribute, in ets-sta10-0.8-SNAPSHOT-aio.jar'

hylkevds commented 7 years ago

The main class is not configured in the pom. Try replacing

      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
      </plugin>

with

      <plugin>
        <artifactId>maven-assembly-plugin</artifactId>
        <configuration>
          <descriptorRefs>
            <descriptorRef>jar-with-dependencies</descriptorRef>
          </descriptorRefs>
          <archive>
            <manifest>
              <mainClass>org.opengis.cite.sta10.TestNGController</mainClass>
            </manifest>
          </archive>
        </configuration>
      </plugin>

That should work. If it does I can make a pull request for it.

bertt commented 7 years ago

ok thanks it runs now :-)