Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2695

TDML test from CLI don't lookup model relative to DAFFODIL_CLASSPATH

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Cannot Reproduce
    • 3.3.0
    • 3.5.0
    • TDML Runner
    • 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. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: