stevedlawrence commented on code in PR #1364:
URL: https://github.com/apache/daffodil/pull/1364#discussion_r1830839173


##########
daffodil-cli/src/test/scala/org/apache/daffodil/cli/cliTest/TestCLIParsing.scala:
##########
@@ -969,4 +969,15 @@ class TestCLIParsing {
       e.getMessage.contains("""Input Buffer: <?xml version="1.0" 
encoding="UTF-8"?>""")
     )
   }
+
+  @Test def test_includeDoesNotExist_Error(): Unit = {
+    val schema = path(
+      
"daffodil-cli/src/test/resources/org/apache/daffodil/cli/cli_schema_invalid_include.dfdl.xsd"
+    )
+    runCLI(args"parse -s $schema") { cli =>
+      cli.sendLine("123", inputDone = true)
+      cli.expectErr("[error]")
+      cli.expectErr(s"Schema context: Location in ${schema.normalize()}")
+    }(ExitCode.UnableToCreateProcessor)

Review Comment:
   I imagine we already have a test that tests for failing to resolve schema 
locations. Maybe we can just update the expected diagnostics to be a bit more 
specific so we can avoid adding another test?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to