# Questions about JUnit import task

**URL:** https://www.finalbuilder.com/forums/t/questions-about-junit-import-task/5604
**Category:** Discussion
**Created:** [December 8, 2017, 12:12pm UTC](https://www.finalbuilder.com/forums/t/questions-about-junit-import-task/5604 "2017-12-08T12:12:25Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [December 8, 2017, 12:12pm UTC](https://www.finalbuilder.com/forums/t/questions-about-junit-import-task/5604/1 "2017-12-08T12:12:25Z")

</div>

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](https://www.finalbuilder.com/forums/uploads/default/original/2X/e/e4599cce8457a46b676a74cd1176d3d9b3810c29.zip) (909 B)

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [December 8, 2017, 10:48am UTC](https://www.finalbuilder.com/forums/t/questions-about-junit-import-task/5604/2 "2017-12-08T10:48:27Z")

</div>

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).

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [December 11, 2017, 6:01am UTC](https://www.finalbuilder.com/forums/t/questions-about-junit-import-task/5604/3 "2017-12-11T06:01:36Z")

</div>

Hi Kay,  
  
Please download [version 1.8.1.689](https://www.finalbuilder.com/downloads/continuaci/continuaci-version-history-v1.8.1) which includes updates to deal with both of these issues.

---

<div class="post-metadata">

### Author: ![kay.zumbusch](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/k/cc9497/32.png) [@kay.zumbusch](https://www.finalbuilder.com/forums/u/kay.zumbusch)
#### Post date: [December 11, 2017, 8:45am UTC](https://www.finalbuilder.com/forums/t/questions-about-junit-import-task/5604/4 "2017-12-11T08:45:16Z")

</div>

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
