Karma vs Chutzpah

前端 未结 2 1982
余生分开走
余生分开走 2021-02-20 05:01

I have been trying to figure out what is the best way to write/run automated jasmine tests in visual studio. Currently, I am using jasmine with Resharper (using PhantomJS) and t

相关标签:
2条回答
  • 2021-02-20 05:19

    DISCLAIMER: I am the author of Chutzpah so take anything I say with a pinch of bias.

    Both Karma and Chutzpah are both good tools to be able to run JavaScript unit tests. Karma is the more active open source project and has a large group of people contributing to it. It is very configurable and lets you (as Sean says) target browser besides Phantom. There are VS plugins for it as well but I have not used them much.

    Chutzpah is a mature product that is also very configurable. It will always run your tests in PhantomJS but does let you open them in a new browser in order to debug. Chutzpah VS integration is mature and seamless.

    0 讨论(0)
  • 2021-02-20 05:36

    The biggest benefit of Karma over Chutzpah is it can be configured to use Chrome (or any other browser) to be the test runner which makes tests a lot easier to debug with browser developer tools.

    0 讨论(0)
提交回复
热议问题