Search code examples
unit-testingkarma-runnerjetbrains-idejs-test-driver

How can I use jsTestDriver in jetBrains?


I am new to unit testing, please explain me how can I use unit testing specially jsTestDriver or karma in jetBrains software.

I saw this link and install jsTestDriver Pluging to my phpStorm but I didn't understand how use it.


Solution

  • I found the response maybe helpful for others :

    1.In Jetbrains software press Ctrl+Alt+s and in plugins tab install karma plugin (Docs)
    2.In your project $npm install karma --save-dev(karma)
    3.Create a config file named : karma.conf.js
    4.In Jetbrains software : Run > Edit configurations > + > karma > in configuration file section select karma.conf.js
    5.You can run this and test your app