{"id":34689,"date":"2013-10-04T11:31:55","date_gmt":"2013-10-04T02:31:55","guid":{"rendered":"https:\/\/blog.jetbrains.com\/jp\/?p=223"},"modified":"2013-10-04T11:31:55","modified_gmt":"2013-10-04T02:31:55","slug":"223","status":"publish","type":"post","link":"https:\/\/blog.jetbrains.com\/ja\/2013\/10\/04\/223\/","title":{"rendered":"WebStorm 7\u3092\u4f7f\u3044JavaScript \u30c6\u30b9\u30c8\u3092Karma\u3067\u52d5\u304b\u3059"},"content":{"rendered":"WebStorm\u306f\u5e38\u306b\u958b\u767a\u3092\u3088\u308a\u697d\u3057\u304f\u3059\u308b\u6700\u65b0\u306e\u30c6\u30af\u30ce\u30ed\u30b8\u3084\u30c4\u30fc\u30eb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002WebStorm 7\u306b\u304a\u3044\u3066\u4e2d\u3067\u3082\u5927\u304d\u306a\u306e\u306fKarma\u306e\u30b5\u30dd\u30fc\u30c8\u3067\u3059\u3002Karma\u306fAngularJS\u30c1\u30fc\u30e0\u304c\u958b\u767a\u3057\u3066\u3044\u308bJavaScript\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306e\u30b7\u30f3\u30d7\u30eb\u3067\u30d5\u30ec\u30ad\u30b7\u30d6\u30eb\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\r\n\u3053\u308c\u307e\u3067\u901a\u308aJSTestDriver(\u8a73\u3057\u3044\u89e3\u8aac\u306f\u3053\u3061\u3089(\u82f1\u8a9e)\u00a0)\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002\r\nWebStorm\u306eKarma\u9023\u643a\u306e\u4e3b\u8981\u6a5f\u80fd\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059:\r\n\r\n\r\n\t\u30ed\u30fc\u30ab\u30ebWeb\u30b5\u30fc\u30d0\u3092\u4f7f\u3044\u3001\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u4efb\u610f\u306e\u30d6\u30e9\u30a6\u30b6\u3067\u30c6\u30b9\u30c8\u3092\u8d70\u3089\u305b\u308b\r\n\tJasmine\u3001QUnit\u3001Mocha\u306a\u3069\u3001\u597d\u304d\u306a\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u7d44\u307f\u5408\u308f\u305b\u3066\u30c6\u30b9\u30c8\u3067\u304d\u308b\r\n\tistanbul\u30b3\u30fc\u30c9\u30ab\u30d0\u30ec\u30c3\u30b8\u30a8\u30f3\u30b8\u30f3\u3068\u4e00\u7dd2\u306b\u52d5\u304b\u305b\u308b\r\n\r\n\u5168\u4f53\u3092\u8aac\u660e\u3059\u308b\u30d3\u30c7\u30aa(\u82f1\u8a9e)\u3092\u7528\u610f\u3057\u307e\u3057\u305f\u306e\u3067\u662f\u975e\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\u307e\u305f\u3001\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb -\u00a0Running JavaScript tests with Karma\u3092\u4f75\u305b\u3066\u3054\u53c2\u7167\u3044\u305f\u3060\u3051\u308c\u3070\u3068\u601d\u3044\u307e\u3059\u3002\r\n[embed]http:\/\/www.youtube.com\/watch?v=oyWW_V4wALs#t=19[\/embed]\r\nKarma\u3092\u4f7f\u3046\u306b\u306f\u3001\u307e\u305aNode.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Karma\u306fWebStorm\u306e\u5185\u8535\u30bf\u30fc\u30df\u30ca\u30eb\u3084\u304a\u597d\u307f\u306e\u30bf\u30fc\u30df\u30ca\u30eb\u3067\u30b0\u30ed\u30fc\u30d0\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u3001WebStorm\u306e\u5185\u8535npm\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u76f4\u63a5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059(\u30c4\u30fc\u30eb\u30d0\u30fc\u306eNode.js\u8a2d\u5b9a\u3088\u308akarma\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u691c\u7d22\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb)\u3002\r\n\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306eKarma\u8a2d\u5b9a\u306fKarma configuration file\u3092\u8ffd\u52a0\u3059\u308b\u304b\u81ea\u52d5\u751f\u6210\u3055\u305b\u307e\u3059\u3002\u3053\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u5185\u3067\u5229\u7528\u3057\u305f\u3044\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u30d6\u30e9\u30a6\u30b6(\u8907\u6570\u6307\u5b9a\u53ef)\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\r\n\r\n\u7d9a\u3044\u3066Karma Run Configuration\u3092\u4f5c\u308a\u3001\u30ef\u30f3\u30af\u30ea\u30c3\u30af\u3067\u3044\u3064\u3067\u3082\u30c6\u30b9\u30c8\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002\r\n\r\n\r\n\u30c6\u30b9\u30c8\u7d50\u679c\u306fRun\u30d1\u30cd\u30eb\u5185\u306b\u7dba\u9e97\u306b\u8868\u793a\u3055\u308c\u307e\u3059\u3002\u30c6\u30b9\u30c8\u7d50\u679c\u304b\u3089\u30b3\u30fc\u30c9\u306b\u30b8\u30e3\u30f3\u30d7\u3057\u305f\u308a\u3001\u30c6\u30b9\u30c8\u7d50\u679c\u306e\u7d71\u8a08\u3092\u78ba\u8a8d\u3057\u305f\u308a\u3001HTML\u306e\u30ec\u30dd\u30fc\u30c8\u3092\u4f5c\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\r\nWebStorm\u306fKarma\u304c\u4f7f\u3063\u3066\u3044\u308bistanbul code coverage engine\u3082\u30b5\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002node\u306e\u30e2\u30b8\u30e5\u30fc\u30ebkarma-coverage\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3001Karma configuration file\u306b\u8ffd\u52a0\u3057\u307e\u3059\u3002Run with coverage\u30dc\u30bf\u30f3\u3092\u62bc\u305b\u3070\u30c6\u30b9\u30c8\u5b9f\u884c\u6642\u306b\u30ab\u30d0\u30ec\u30c3\u30b8\u6e2c\u5b9a\u304c\u3067\u304d\u307e\u3059\u3002\r\n\r\n\r\nWebStorm\u306eKarma\u9023\u643a\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u306fRunning JavaScript tests with Karma tutorial (\u82f1\u8a9e)\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u3002\r\nDevelop with pleasure!\r\n\r\nWebStorm \u30c1\u30fc\u30e0","protected":false},"excerpt":{"rendered":"WebStorm\u306f\u5e38\u306b\u958b\u767a\u3092\u3088\u308a\u697d\u3057\u304f\u3059\u308b\u6700\u65b0\u306e\u30c6\u30af\u30ce\u30ed\u30b8\u3084\u30c4\u30fc\u30eb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002WebStorm 7\u306b\u304a\u3044\u3066\u4e2d\u3067\u3082\u5927\u304d\u306a\u306e\u306fKarma\u306e\u30b5\u30dd\u30fc\u30c8\u3067\u3059\u3002Karma\u306fAngularJS\u30c1\u30fc\u30e0\u304c\u958b\u767a\u3057\u3066\u3044\u308bJavaScript\u3092\u30c6\u30b9\u30c8\u3059\u308b\u305f\u3081\u306e\u30b7\u30f3\u30d7\u30eb\u3067\u30d5\u30ec\u30ad\u30b7\u30d6\u30eb\u306a\u30c4\u30fc\u30eb\u3067\u3059\u3002\u3053\u308c\u307e\u3067\u901a\u308aJSTestDriver(\u8a73\u3057\u3044\u89e3\u8aac\u306f\u3053\u3061\u3089(\u82f1\u8a9e)\u00a0)\u3082\u5229\u7528\u3067\u304d\u307e\u3059\u3002WebStorm\u306eKarm","protected":false},"author":{"name":"Yusuke","link":"https:\/\/blog.jetbrains.com\/ja\/author\/yusuke-yamamoto"},"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[1114],"tags":[],"cross-post-tag":[],"acf":[],"featured_image":null,"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/posts\/34689"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/users\/215"},{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/users\/215"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/comments?post=34689"}],"version-history":[{"count":0,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/posts\/34689\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/media?parent=34689"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/categories?post=34689"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/tags?post=34689"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/ja\/wp-json\/wp\/v2\/cross-post-tag?post=34689"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}