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

Mike Beckerle commented on DAFFODIL-541:
----------------------------------------

[[email protected]] 

How about a test flag so you can put `diagnosticsStripFileInfo="false"` in the 
test case to turn off the removal of the file/line info?

By default this would be 'true' so that we don't get the false positives issue 
so fixes this bug. 

> TDML Runner needs to restrict text used for error comparison
> ------------------------------------------------------------
>
>                 Key: DAFFODIL-541
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-541
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Infrastructure, TDML Runner, Usability
>            Reporter: Jessie Chab
>            Assignee: Olabusayo Kilo
>            Priority: Minor
>
> Currently the TDML runner's comparison feature for errors uses the entire 
> backtrace information. So if your test is looking for an error that contains 
> "lengthKind", but your test filename is "lengthKind.tdml", it will match and 
> the test will erroneously pass. As Mike mentioned in our e-mail chain, the 
> TDML runner "should remove all the file-name things, leaving only the actual 
> error message content."



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

Reply via email to