Test JavaScript programs with Karma

Karma Chameleon

Conclusions

Karma only automates test execution with established test frameworks like Jasmine. Developers can continue to use their own frameworks and do not have to learn how to work in a new environment.

Simultaneous, automated testing in multiple browsers under real conditions drastically accelerates the entire testing process. Moreover, Karma is a proven tool that is stable and easy to extend with plugins. If you are looking to develop complex web applications, you might want to give the test tool a trial run.

For more information on how Karma works, see VojtÍch JÌna's Master's thesis, which is included with the Karma source code [12].

Infos

  1. Karma: https://karma-runner.github.io/
  2. Jasmine: https://jasmine.github.io
  3. Mocha: https://mochajs.org
  4. QUnit: https://qunitjs.com
  5. Jenkins: https://jenkins.io
  6. Travis: https://travis-ci.org
  7. Semaphore: https://semaphoreci.com
  8. List of all launchers: https://www.npmjs.org/browse/keyword/karma-launcher
  9. List of all adapters: https://npmjs.org/browse/keyword/karma-adapter
  10. Istanbul: https://istanbul.js.org
  11. Reference for configuration file: https://karma-runner.github.io/3.0/config/configuration-file.html
  12. JÌna, VojtÍch. JavaScript Test Runner . Master's thesis, Czech Technical University in Prague, June 2013, https://github.com/karma-runner/karma/raw/master/thesis.pdf

The Author

Tim Sch¸rmann is a freelance computer scientist and author. Besides books, Tim has published various articles in magazines and on websites.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy ADMIN Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

comments powered by Disqus
Subscribe to our ADMIN Newsletters
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs



Support Our Work

ADMIN content is made possible with support from readers like you. Please consider contributing when you've found an article to be beneficial.

Learn More”>
	</a>

<hr>		    
			</div>
		    		</div>

		<div class=