Strabon
changeset 1031:baf571343765
Updated Tester Guide.
author | Panayiotis Smeros <psmeros@di.uoa.gr> |
---|---|
date | Fri Apr 12 16:44:00 2013 +0300 (2013-04-12) |
parents | c7fdfaa7ab52 |
children | 8b958fb34f48 |
files | README |
line diff
1.1 --- a/README Fri Apr 12 14:41:28 2013 +0300 1.2 +++ b/README Fri Apr 12 16:44:00 2013 +0300 1.3 @@ -232,13 +232,36 @@ 1.4 Assuming again that you are familiar with Maven and Junit these are the steps 1.5 you need to follow to test the functionality of Strabon: 1.6 1.7 + 1.8 * Using Eclipse 1.9 1.10 If you want to create a new test: 1.11 1.12 1. Import Strabon into Eclipse as explained in the Developer Guide. 1.13 - 2. Go to project strabon-testsuite. 1.14 - 3. Create a Test class in the appropriate package. 1.15 + 2. Go to strabon-testsuite project. 1.16 + 3. Create a new folder (Recommended folder name: <test's name>) and place inside the following files: 1.17 + 3.1. An ntriples or nquads file with the test dataset (Recommended file name: <test's name>[.nt, .nq]). 1.18 + 3.2. A file with the sparql test query (Recommended file name: <test's name>.rq). 1.19 + 3.3. A file with the expected test results in xml format (Recommended file name: <test's name>.srx). 1.20 + 4. Create a test class that extends TemplateTest class. 1.21 + 5. If you have followed the recommendations the test is ready. If you have different names for your 1.22 + files, insert them explicitly in the constructor of TemplateTest class. 1.23 + 1.24 + If you want to run a test: 1.25 + 1.26 + 1. Right-click on the test class. 1.27 + 2. Select "Run as JUnit Test". 1.28 + 3. Database properties are retrieved from database.properties file. If you want, you can change a property 1.29 + on the fly with an environment variable. 1.30 + 1.31 + 1.32 +* Command Line 1.33 + 1.34 + If you want to run all the tests: 1.35 + 1.36 + 1. Go to Strabon directory (root directory of all the subprojects). 1.37 + 2. Run "mvn test". 1.38 + 3. Optionally you can pass an environment variable with "-DvariableName=variableValue". 1.39 1.40 1.41 Storing stRDF graphs and evaluating stSPARQL queries