You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Josh Adams (Jira)" <ji...@apache.org> on 2020/12/09 16:21:00 UTC

[jira] [Closed] (DAFFODIL-2443) TDMLRunner not detecting expected errors

     [ https://issues.apache.org/jira/browse/DAFFODIL-2443?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Josh Adams closed DAFFODIL-2443.
--------------------------------
    Resolution: Fixed

Not an actual issue, this behaviour was the result of a mistake in other code, not a part of TDMLRunner.  With the corrected code, the tests work as expected.

> TDMLRunner not detecting expected errors
> ----------------------------------------
>
>                 Key: DAFFODIL-2443
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2443
>             Project: Daffodil
>          Issue Type: Bug
>          Components: TDML Runner
>    Affects Versions: 3.0.0
>            Reporter: Josh Adams
>            Priority: Minor
>
> While working on enabling defineVariables to have non-constant expressions, I ran into a few cases where expected errors were occurring, but were not being detected by TDMLRunner.  Instead, the error occurred and the stacktrace from the exception is simply printed out, causing the test to fail even though the TDML test case was expecting that error.
> See tests test_circular_defineVariable_err and test_defineVariable_ref_noDefault_err in daffodil-test/src/test/scala/org/apache/daffodil/section07/variables/TestVariables.scala which are currently commented out.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)