{"id":6847,"date":"2012-02-08T09:06:46","date_gmt":"2012-02-08T00:06:46","guid":{"rendered":"http:\/\/fukata.org\/?p=6847"},"modified":"2017-08-11T22:58:48","modified_gmt":"2017-08-11T22:58:48","slug":"jenkins-run-perl-testing-code","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/6847\/","title":{"rendered":"Perl\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092Jenkins\u3067\u52d5\u304b\u3059"},"content":{"rendered":"
\u793e\u5185\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u4e3b\u306a\u8a00\u8a9e\u304cPerl\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u3001\u305b\u3063\u304b\u304f\u793e\u5185\u306bJenkins\u3092\u5c0e\u5165\u3057\u305f\u306e\u3067\u3001Perl\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3082\u7ba1\u7406\u3067\u304d\u306a\u3044\u304b\u3068\u8a2d\u5b9a\u3057\u305f\u6642\u306e\u30ed\u30b0\u3067\u3059\u3002<\/p>\n
<\/p>\n
\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u81ea\u4f53\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306a\u69cb\u9020\u3067Test::More<\/a>\u3092\u4f7f\u3063\u305f\u30b7\u30f3\u30d7\u30eb\u306a\u3082\u306e\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n \u30c6\u30b9\u30c8\u81ea\u4f53\u3082\u4e0b\u8a18\u306e\u3088\u3046\u306a\u7c21\u5358\u306a\u3082\u306e\u3092\u3068\u308a\u3042\u3048\u305a\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n Jenkins\u3067Perl\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u7d50\u679c\u3092\u96c6\u8a08\u3059\u308b\u306e\u306bJUnit\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u308bXML\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n Test::More\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u6642\u306b\u4ed8\u3044\u3066\u304f\u308bprove\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30b3\u30de\u30f3\u30c9\u6642\u306b\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u6307\u5b9a\u3059\u308b\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u304c\u3001\u4eca\u56de\u306fJUnit\u4e92\u63db\u306e\u3082\u306e\u3092\u751f\u6210\u3059\u308b\u306e\u3067\u3001TAP::Formatter:JUnit\u3068\u3044\u3046\u30d5\u30a9\u30fc\u30de\u30c3\u30bf\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002JUnit\u4ee5\u5916\u306e\u30d5\u30a9\u30fc\u30de\u30c3\u30bf\u30fc\u306b\u3064\u3044\u3066\u306f\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n \u3067\u3001\u5b9f\u969b\u306b\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u304b\u3089JUnit\u4e92\u63db\u306e\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306b\u306f\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n \u5b9f\u969b\u306b\u751f\u6210\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<\/p>\n Jenkins\u5074\u3067\u306e\u30d3\u30eb\u30c9\u5468\u308a\u306e\u8a2d\u5b9a\u3067\u3059\u3002\u3053\u308c\u3067\u3001\u57fa\u672c\u7684\u306a\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3057\u3066\u3044\u308b\u306e\u3067\u3001svn\u3084git\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u8a2d\u5b9a\u3092\u3059\u308c\u3070\u52d5\u4f5c\u3059\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n <\/a><\/p>\n \u30c6\u30b9\u30c8\u7d50\u679c\u3082\u901a\u5e38\u901a\u308a\u30b0\u30e9\u30d5\u3067\u898b\u308c\u307e\u3059\u3002<\/p>\n <\/a><\/p>\n","protected":false},"excerpt":{"rendered":" \u793e\u5185\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u4e3b\u306a\u8a00\u8a9e\u304cPerl\u3068\u3044\u3046\u3053\u3068\u3082\u3042\u308a\u3001\u305b\u3063\u304b\u304f\u793e\u5185\u306bJenkins\u3092\u5c0e\u5165\u3057\u305f\u306e\u3067\u3001Perl\u306e\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3082\u7ba1\u7406\u3067\u304d\u306a\u3044\u304b\u3068\u8a2d\u5b9a\u3057\u305f\u6642\u306e\u30ed\u30b0\u3067\u3059\u3002 … \u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":2,"featured_media":9223372036854775807,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1980],"tags":[883,956,955],"_links":{"self":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/6847"}],"collection":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/comments?post=6847"}],"version-history":[{"count":0,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/posts\/6847\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media\/9223372036854775807"}],"wp:attachment":[{"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/media?parent=6847"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/categories?post=6847"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.fukata.org\/wp-json\/wp\/v2\/tags?post=6847"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}\r\n[Project]\/\r\n ...\r\n t\/\r\n sub\/\r\n test_sub1.t\r\n test1.t\r\n test2.t\r\n test3.t\r\n<\/pre>\n
\r\nuse Test::More tests => 3;\r\n\r\nis 1, 1;\r\nok 2 == 2;\r\nisnt 2, 1;\r\n<\/pre>\n
JUnit\u4e92\u63db\u306e\u30c6\u30b9\u30c8\u30b9\u30a4\u30fc\u30c8\u751f\u6210<\/h3>\n
\r\ncd [Project]\r\nprove --formatter=TAP::Formatter::JUnit -l t > test_results.xml\r\n<\/pre>\n
\r\n
Jenkins\u5074\u306e\u8a2d\u5b9a<\/h2>\n