Skip to content

Testing

weisenje edited this page Jan 11, 2018 · 4 revisions

Testing

To run unit tests only

$ mvn test

To run integration tests (*_IT.java) only

  • Start Virtuoso if needed. By default, the tests look for Virtuoso at localhost:2420.
  • Start SemTK services as specified in the "Make and Start Services" section of Installing (be sure to use ./startServices.sh)
  • Configure integration tests if needed: sparqlGraphLibrary/src/test/resources/integrationtest.properties
$ mvn failsafe:integration-test

To run all tests

Follow prerequisites above for integration tests, and then run

$ ./runTests.sh

Here is sample output:

williams@vesuvius37 -bash semtk-ge> ./runTests.sh
Writing full test output to /home/williams /projects/semtk-ge/runTests-20180111T110050.log
Running unit tests in /home/williams/projects/semtk-ge...
Running integration tests in /home/williams/projects/semtk-ge...
Tests run: 28, Failures: 0, Errors: 0, Skipped: 0
Tests run: 80, Failures: 0, Errors: 0, Skipped: 0
SPARQLgraph
Clone this wiki locally