Questions about JUnit import task

Hi,

we just added unit testing to our TypeScript based web application and would like Continua CI to evaluate the output in JUnit format. This works fine but we discovered a few issues and we would like to ask if they are supposed to work this way.

1. If the file to import does not exist there is no error message.

2. If the unit tests command fails with an exception outside the test code, the error is logged to stdout and included in XML file (see attached file). In this case the unit tests cases from the XML file are imported into Continua CI but the error is completely ignored and the import is rendered successful.

Kind regards

Kay Zumbusch__41934__0__testResults.zip (909 B)

Hi Kay

1) No, that is an oversight, we’ll look into it.
2) What unit test framework are you using for typescript? Looking at the xml file, I would say that’s most likely as designed. We’re importing the unit test results only. We can see if we can import the system-out/system-err nodes, but I’m not sure if we should be treating anything written to system-out as an error (it may not be an error at all).

Hi Kay,

Please download version 1.8.1.689 which includes updates to deal with both of these issues.


Hi guys,

we use Karma with the JUnit reporter to run the TypeScript unit tests but we do not use the integrated Karma action but run the npm task from a MSBuild project. I’ll update our installation to the latest version. Thanks for the quick response and solution.

Kind regards

Kay Zumbusch