You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2020/11/19 13:39:00 UTC

[jira] [Closed] (DAFFODIL-1298) Duplicate test cases in Functions.tdml

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

Dave Thompson closed DAFFODIL-1298.
-----------------------------------

The specific commit this was fixed was not specified in the resolved comment.

Verified by searching the specified files for a sample of the identified duplicate tests.

Found no duplicate named tests.

> Duplicate test cases in Functions.tdml
> --------------------------------------
>
>                 Key: DAFFODIL-1298
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1298
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Clean Ups, QA
>    Affects Versions: 1.0.0
>            Reporter: Mike Beckerle
>            Assignee: Mike Beckerle
>            Priority: Minor
>              Labels: beginner
>             Fix For: 3.0.0
>
>
> I tweeked the TDML runner to reject duplicate test names in the same TDML file, and I found that the file Functions.tdml has quite a few duplicates in it. These tests are passing because the first one found is used. The later test with duplicate name is not used. 
> However, really we should not be depending on this. All tests in a TDML file should have unique names. The schema for TDML files is supposed to have a uniqueness constraint that assures this, but it seems either that uniqueness constraint is not properly expressed, or we're invoking the validation of TDML files without the options that tell it to validate the key/uniqueness constraints (which can be disabled because they are so expensive to execute by the Xerces XML validator). I believe the TDML runner should turn on "full schema checking" or something like that to get the uniqueness constraints checked. (TDML runner defect is DFDL-1299)
> Here's the list of duplicates from Functions.tdml
> More than one test case for name 'hexBinary_constructor_03'.
> More than one test case for name 'nonNeg_constructor_03'.
> More than one test case for name 'byte_constructor_03'.
> More than one test case for name 'uint_constructor_01'.
> More than one test case for name 'hexBinary_constructor_04'.
> More than one test case for name 'uint_constructor_04'.
> More than one test case for name 'byte_constructor_04'.
> More than one test case for name 'ubyte_constructor_01'.
> More than one test case for name 'ubyte_constructor_02'.
> More than one test case for name 'ubyte_constructor_03'.
> More than one test case for name 'hexBinary_constructor_01'.
> More than one test case for name 'nonNeg_constructor_01'.
> More than one test case for name 'byte_constructor_01'.
> More than one test case for name 'uint_constructor_03'.
> More than one test case for name 'date_constructor_01'.
> More than one test case for name 'hexBinary_constructor_02'.
> More than one test case for name 'uint_constructor_02'.
> More than one test case for name 'nonNeg_constructor_04'.
> More than one test case for name 'byte_constructor_02'.
> More than one test case for name 'ubyte_constructor_04'.



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