Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Cannot Reproduce
-
3.3.0
-
None
Description
I discovere just today that in a parserTestCase if the model is defined relative to the src/main/resources directory, that it works fine for 'sbt test', but if you try to run that TDML via the daffodil CLI, it fails:
export DAFFODIL_CLASSPATH=src/main/resources:src/test/resources:src/test/scala daffodil test -iii src/test/resources/com/owlcyberdefense/skyview/skyview.tdml
That fails, unable to find the schema based on the model relative path.
The model path gets seems to get interpreted relative to the project homedir, not classpath relative.
If you change the model in the parserTestCases to be relative to the project root, by adding src/main/resources to the front of it then it works via 'sbt test', via IntelliJ idea, and at the daffodil CLI command.
I think this is a bug in the TDML runner as used by the CLI. One should not have to append src/main/resources to the front of the model path.