-
Notifications
You must be signed in to change notification settings - Fork 24
Testing the offline validator
Nicolas Rodriguez edited this page Mar 17, 2020
·
2 revisions
He have developed a class that allow us to test easily the offline validator against all the test files generated by the sbml team.
It is located in the core/test
folder :
git_root/core/test/org/sbml/jsbml/test/OfflineValidatorTests.java
The first argument to the class is a folder that should contain many sub folders named after the SBML constraints. You can download the validation test files that we are using a the moment from the link inline.
The second argument is a constraint number or name or a range of constraints. The program will look for folders with the given constraint number.
The third and last argument is a string used to filter the file names
Below are some examples:
# full example on windows running the core constraint from 10501 to 22804
D:\work\data\syntactic-cases-2017-11-20-with-spatial-render-2020-03 10501:22804 xml
# full example on linux or mac running the core constraint from 10501 to 22804
/home/rodrigue/data/sbml-test-suite/syntactic-cases-2017-11-20 10501:22804 xml
# folder remove for the example below to improve visibility
# running all spatial tests using the 'spatial' label
spatial-10101:spatial-25000 xml
# running all spatial tests using the package number
1210101:1225000 xml
# running all tests for the Domain object
spatial-20800:spatial-20900 xml
# running only one constraint
10601 xml
# running all l3v1 core test files
10501:22804 l3v1
# running all test from core and all packages
10501:9999999 xml