[ 
https://issues.apache.org/jira/browse/DAFFODIL-2539?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18047473#comment-18047473
 ] 

Tejas Tiwari commented on DAFFODIL-2539:
----------------------------------------

I’ve opened a pull request addressing this issue:
https://github.com/apache/daffodil/pull/1605
The PR removes duplicated TDML content under test space/test 1/ and replaces it 
with a focused TDML file (spaceInNames.tdml) that preserves coverage for 
schemas and TDML files located in directories with spaces.
The intent of the remaining test is clarified, and overlapping tests/schemas 
are removed to avoid duplication with section06/namespaces.
Please let me know if you’d prefer a different split of coverage or further 
adjustments.

> Duplicate TDML file - rename, and remove overlapping tests and schemas
> ----------------------------------------------------------------------
>
>                 Key: DAFFODIL-2539
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2539
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Clean Ups, QA
>    Affects Versions: 3.1.0
>            Reporter: Mike Beckerle
>            Priority: Minor
>              Labels: beginner
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> There are 2 TDML files under daffodil-test with the same name, similar 
> contents, though they have diverged somewhat.
> Both live under daffodil-test/src/test/resources
> org/apache/daffodil/section06/namespaces/namespaces.tdml
>  "test space/test 1/namespaces.tdml"
> (note how the second one has spaces in the first two path steps.)
> First, this file under test space/test 1 should be renamed. Suggest 
> spacesInNames.tdml
> Second, if you compare the two files, you see they are quite similar, but it 
> looks like the only test in the "test space/test 1" version that has an 
> actual driver scala code calling it, is in 
> section00/general/TestGeneral.scala, test_no_namespace_02.
> All the other tests and any irrelevant define-schemas in this "test 
> space/test 1/namespaces.tdml" should be deleted. This will leave just 
> test_no_namespace_02 and any defineSchema parts needed.
> If those parts exist also in section06/namespaces/namespace.tdml, they should 
> be deleted from that file, so that the resulting two TDML files have no 
> duplicated content, and different names going forward.
> The test name itself should change from test_no_namespace_02 to something 
> more descriptive, like no_namespace_colliding_element_names.
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to