The following sample has 1 test class with 1 test method but the output shows 2 tests in console and also in the xml report.
dub test --skip-registry=all -- --report=dunit.xml
..
Tests run: 2, Failures: 0, Errors: 0, Skips: 0
OK
dunit.xml
<testsuites>
<testsuite name="dunit">
<testcase name="unittest" time="0.000" classname="app" />
<testcase name="checkAnswer" time="0.000" classname="tests.tests.TestCase" />
</testsuite>
</testsuites>
dlang-sample.zip
The following sample has 1 test class with 1 test method but the output shows 2 tests in console and also in the xml report.
dunit.xml
dlang-sample.zip