docbook / xslTNG

DocBook xslTNG Stylesheets
https://xsltng.docbook.org
MIT License
41 stars 20 forks source link

Test case not in Test suite? #442

Closed fsteimke closed 5 months ago

fsteimke commented 5 months ago

Running gradlew dist on a fresh installation of the recent release shows 1.638 successful tests. There are four test units mediaobject.001... mediaobject.004 among them in the defaults group. But in the test-sources there is also mediaobject.005.xml ("This tests adding additional metadata to the media objects").

I cant find a trace for the mediaobject.005 test unit, neither in defaults.html nor in the messages from gradle. The test suits seems to ignore it.

i found that because i wanted to add my of testcase in mediaobject.006which did not work. So i investigated whether others do run, and found 005 which does not.

Greetings, Frank

ndw commented 5 months ago

You can see in the report that it does get run. There is a lot of complexity in the test configuration because we need to test with different environments and different parameters. I've tried to contain all that complexity in the buildSrc Groovy scripts. The mediaobject.005.xml tests run in the a11y configuration that outputs some additional attributes. In TestGenerator.groovy, you'll find a regex list that identifies different tests to be run in different configurations. That's where mediaobject\\.005 is called out.

Good catch, though. And I hope that explanation makes some sense! :-)