/JsUnitTesting

Java EE project which utilizes Jasmine and Karma JS for unit testing the JavaScript part of the application.

Primary LanguageJavaScript

JsUnitTesting

A Java EE project which utilizes Jasmine as a JavaScript unit testing framework, and Karma JS as test runners. This project gives you an example of how to:

  • Use Jasmine 2.0 for developing synchronous JavaScript tests.
  • Use Jasmine 2.0 for developing asynchronous JavaScript tests.
  • Use Karma JS as a JavaScript test runner for Jasmine.
  • Use Karma plugins in order to generate test reports.
  • Use Karma plugins in order to generate code coverage reports.

Running the test sample

cd WebContent/js
karma start config.js