python ruby-programming-language Smalltalk Vue.js Knockoutjs TypeScript JavaScript, OOPs JavaScript Angular 7, Interview Questions Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 8,7,6,5,4 and 2 Interview Questions and Answers Angular 4 Angular 2 AngularJs 1.x NodeJs Perl Programming R Programming RequireJs Rust Programming Backbonejs closure programming language go-programming-language kotlin-programming-language
How To Install Karma?

How To Install Karma?

The Karama is a test runner and it use to writing and running the unit tests while developing the application and Karma runs on Node.js.

Karma works on the node.js stable versions - 0.8.x, 0.10.x and 0.12.x.
Installing Karma and plugins - The recommended approach to install Karma in your locally in the project's directory.

Install Karma -
ü  npm install karma --save-dev

Install plugins that your project needs -
ü  npm install karma-jasmine karma-chrome-launcher --save-dev

This will install karma, karma-jasmine and karma-chrome-launcher packages into node_modules in your current working directory and after installed save the all dependency in the package.json file.

The Command line Interface - You should install the Karma CLI globally -
ü  npm install -g karma-cli

List of Karma Dependencies -
ü  karma
ü  karma-chrome-launcher
ü  karma-cli
ü  karma-coverage-istanbul-reporte
ü  karma-jasmine
ü  karma-jasmine-html-reporter

Install all above dependencies -
ü  npm install --save-dev <all-of-the-above-dependencies>

All the dependency in the package.json looks like -
  "devDependencies": {
I hope you are enjoying with this post! Please share with you friends!! Thank you!!!

Hi there! Welcome to my blog. My name is Anil Singh. I'm a author of this blog. For more detail about me, kindly refer to this link..
My Blogs - and
My Books - Interview Questions and Answers Books- Get Your Book in 15+ Digital Stores Worldwide..

You Might Also Like Powered by Blogger.
ASK Questions