3
$\begingroup$

I am working on an application using Workbench 3.0 and Mathematica 10.4.0. I've written a couple of test files for different parts of my work, and a master file with a test suite:

TestSuite[
    {
        FileNameJoin[{"ExternalFunctions", "GCS_routines", "GCSroutines.mt"}]
        ,
        FileNameJoin[{"TestCases", "SphericalHarmonics.mt"}]
        ,
        FileNameJoin[{"TestCases", "IgesRead.mt"}]
    }
]

Now, if I run the test suite, the resulting output is not as neatly structured as it is shown in workbench help. I get the following:

Wolfram Unit Tester output

Just a flat list, and even worse, the single results are no longer linked to the test cases, clicking them doesn't work.

Running a single test file works as expected.

Is there anything I am doing wrong?

$\endgroup$
  • $\begingroup$ Your use of FileNameJoin seems to trip up the unit tester. If you just use "TestCases/IgesRead.mt" etc, it should work (I think / gets accepted as a path separator on Windows as well but not sure) $\endgroup$ – Gerli Aug 12 '16 at 10:34
  • $\begingroup$ @Gerli, you were absolutely right. And / works as path separator on Windows. If you post your comment as an answer, I will happily accept it. $\endgroup$ – AxelF Aug 12 '16 at 13:49
4
$\begingroup$

The use of FileNameJoin seems to trip up the unit tester (this is a bug).

A workaround is to just use / as a path separator in the string (works on OSX, Linux, and Windows):

TestSuite[
    {
        "ExternalFunctions/GCS_routines/GCSroutines.mt"
        ,
        "TestCases/SphericalHarmonics.mt"
        ,
        "TestCases/IgesRead.mt"
    }
]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.