# Add Karma unit tests out of the box

**URL:** https://www.finalbuilder.com/forums/t/add-karma-unit-tests-out-of-the-box/5397
**Category:** Feature Requests
**Created:** [August 31, 2015, 2:53am UTC](https://www.finalbuilder.com/forums/t/add-karma-unit-tests-out-of-the-box/5397 "2015-08-31T02:53:36Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [August 31, 2015, 2:53am UTC](https://www.finalbuilder.com/forums/t/add-karma-unit-tests-out-of-the-box/5397/1 "2015-08-31T02:53:36Z")

</div>

We would love to see support out of the box for karma unit tests:  
  
[http://karma-runner.github.io/0.13/index.html](http://karma-runner.github.io/0.13/index.html)  
  
We can run it as a command in the meantime, so don’t worry too much about it, but would be nice if there was a simple step I could add instead.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [August 31, 2015, 3:45am UTC](https://www.finalbuilder.com/forums/t/add-karma-unit-tests-out-of-the-box/5397/2 "2015-08-31T03:45:07Z")

</div>

If relevant, here are the steps:   
  
 1) Install npm on the build agent   
 2) Install the following npm packages:   
  
 a) npm install -g karma   
 b) npm install -g karma-jasmine   
 c) npm install -g karma-chrome-launcher   
  
 3) Add a build agent property:   
  
 Namespace: Karma   
 Run on: Agent   
 Type: Path finder plugin   
 Property name: Path   
 Executable: karma.cmd   
 Search paths: %APPDATA%\npm and %PATH%   
  
 4) Add a run executable action:   
  
 Executable path: $Agent.Karma.Path$   
 Working directory: %RepositoryPath%\src%ProjectName%.Tests\   
 Arguments: start --single-run

---

<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: [September 2, 2015, 2:59am UTC](https://www.finalbuilder.com/forums/t/add-karma-unit-tests-out-of-the-box/5397/3 "2015-09-02T02:59:32Z")

</div>

Hi Geert,  
  
Thanks for this request and the steps. Karma is on our to-do list under Javascript unit testing frameworks alongside mocha, jasmine and qunit. We choose only to implement mocha for 1.7 but will get on to the others eventually.

---

<div class="post-metadata">

### Author: ![catenalogic](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/catenalogic/32/116_2.png) [@catenalogic](https://www.finalbuilder.com/forums/u/catenalogic)
#### Post date: [September 3, 2015, 2:53am UTC](https://www.finalbuilder.com/forums/t/add-karma-unit-tests-out-of-the-box/5397/4 "2015-09-03T02:53:02Z")

</div>

Thanks and sorry for the late reply. Somehow I don’t get any notifications any longer for updates on the forums.

---

<div class="post-metadata">

### Author: ![walliski](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/walliski/32/169_2.png) [@walliski](https://www.finalbuilder.com/forums/u/walliski)
#### Post date: [September 7, 2015, 1:51am UTC](https://www.finalbuilder.com/forums/t/add-karma-unit-tests-out-of-the-box/5397/5 "2015-09-07T01:51:35Z")

</div>

Currently using karma with junit export if you want unit tests to show up, as a hint if anyone wonders.
