{"id":358,"date":"2020-04-07T20:33:08","date_gmt":"2020-04-07T11:33:08","guid":{"rendered":"http:\/\/batmask.dothome.co.kr\/?p=358"},"modified":"2020-04-16T18:03:35","modified_gmt":"2020-04-16T09:03:35","slug":"python-enable-unittest-on-vs-code","status":"publish","type":"post","link":"http:\/\/batmask.net\/index.php\/2020\/04\/07\/358\/","title":{"rendered":"Python: Enable unittest on VS Code"},"content":{"rendered":"\n<p>VS Code\ub294 \uc4f8\uc218\ub85d \ub9d8\uc5d0 \ub4dc\ub294 \ucf54\ub4dc \ud3b8\uc9d1\uae30\ub2e4. \uac00\ubccd\uace0, \ud50c\ub7ec\uadf8\uc778\uc73c\ub85c \ud655\uc7a5\uc131\ub3c4 \uc88b\uace0, \ubb38\uc11c\ud654\ub3c4 \uc798\ub418\uc5b4 \uc788\ub2e4. python \uc0ac\uc6a9\uc2dc, \uae30\ubcf8\uc801\uc73c\ub85c unittest\uac00 \ud65c\uc131\ud654 \ub418\uc5b4 \uc788\uc9c0 \uc54a\uc740\ub370, <a href=\"https:\/\/code.visualstudio.com\/docs\/python\/testing\">\uacf5\uc2dd\ubb38\uc11c\ub97c \ucc38\uc870<\/a> \ud558\uc5ec \uc124\uc815\ud558\uc600\ub2e4. <\/p>\n\n\n\n<p>Nose, \ub098 PyTest\ub3c4 \uc788\ub294\ub370, \ub098\ub294 \uae30\ubcf8 unittest \ubaa8\ub4c8\uc744 \uc4f0\ubbc0\ub85c \ubcc4\ub2e4\ub978 \ucd94\uac00\uc791\uc5c5\uc5c6\uc774 \uc124\uc815\ubcc0\uacbd\uc73c\ub85c \uac00\ub2a5\ud558\ub2e4. <\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Ctrl+Shift+P\ub85c \ucee4\ub9e8\ub4dc \ud314\ub808\ud2b8\ub97c \ub744\uc6b0\uace0 settings \uc2e4\ud589<\/li><li>Python \ud655\uc7a5\uc774 \uc124\uce58\ub418\uc5b4 \uc788\ub2e4\ub294 \uac00\uc815\ud558\uc5d0, Python.Testing \ud56d\ubaa9 \uac80\uc0c9<\/li><li>&#8220;Unittest enabled&#8221; \uccb4\ud06c\ud574\uc11c \ud65c\uc131\ud654 \ub610\ub294 json\ud30c\uc77c\uc744 \ud3b8\uc9d1\ud55c\ub2e4\uba74 <code>\"python.testing.unittestEnabled\":\u00a0true<\/code> \uc744 \ucd94\uac00\ud55c\ub2e4.<\/li><li>\uae30\ud0c0 \ud544\uc694\ud55c \uc124\uc815\uc744 <a href=\"https:\/\/code.visualstudio.com\/docs\/python\/testing\">\uc704 \ub9c1\ud06c\ub97c \ucc38\uc870<\/a>\ud558\uc5ec \uc218\uc815\ud55c\ub2e4.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"738\" src=\"http:\/\/batmask.dothome.co.kr\/wordpress\/wp-content\/uploads\/2020\/04\/vs_code_python_unittest-1024x738.png\" alt=\"\" data-id=\"359\" data-full-url=\"http:\/\/batmask.dothome.co.kr\/wordpress\/wp-content\/uploads\/2020\/04\/vs_code_python_unittest.png\" data-link=\"http:\/\/batmask.dothome.co.kr\/index.php\/2020\/04\/07\/358\/vs_code_python_unittest\/\" class=\"wp-image-359\" srcset=\"http:\/\/batmask.net\/wordpress\/wp-content\/uploads\/2020\/04\/vs_code_python_unittest-1024x738.png 1024w, http:\/\/batmask.net\/wordpress\/wp-content\/uploads\/2020\/04\/vs_code_python_unittest-300x216.png 300w, http:\/\/batmask.net\/wordpress\/wp-content\/uploads\/2020\/04\/vs_code_python_unittest-768x554.png 768w, http:\/\/batmask.net\/wordpress\/wp-content\/uploads\/2020\/04\/vs_code_python_unittest.png 1383w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p>\uc88c\uce21\uc758 \ud14c\uc2a4\ud2b8 \ud0ed\uc5d0\uc11c \ud14c\uc2a4\ud2b8\ubcc4\ub85c \uc2e4\ud589\uac00\ub2a5\ud55c \ucc3d\uc774 \ub728\uace0, \ud14c\uc2a4\ud2b8\uacb0\uacfc\ub3c4 \uc544\ub798\uc5d0 \ub744\uc6b8 \uc218 \uc788\ub2e4. \uc6b0\ud074\ub9ad\uc5d0\ub3c4 \ud14c\uc2a4\ud2b8 \uad00\ub828 \uba54\ub274\uac00 \ubcf4\uc784\uc744 \uc54c \uc218 \uc788\ub2e4.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VS Code\ub294 \uc4f8\uc218\ub85d \ub9d8\uc5d0 \ub4dc\ub294 \ucf54\ub4dc \ud3b8\uc9d1\uae30\ub2e4. \uac00\ubccd\uace0, \ud50c\ub7ec\uadf8\uc778\uc73c\ub85c \ud655\uc7a5\uc131\ub3c4 \uc88b\uace0, \ubb38\uc11c\ud654\ub3c4 \uc798\ub418\uc5b4 \uc788\ub2e4. python \uc0ac\uc6a9\uc2dc, \uae30\ubcf8\uc801\uc73c\ub85c unittest\uac00 \ud65c\uc131\ud654 \ub418\uc5b4 \uc788\uc9c0 \uc54a\uc740\ub370, \uacf5\uc2dd\ubb38\uc11c\ub97c \ucc38\uc870 \ud558\uc5ec \uc124\uc815\ud558\uc600\ub2e4. Nose, \ub098 PyTest\ub3c4 \uc788\ub294\ub370, \ub098\ub294 \uae30\ubcf8 unittest \ubaa8\ub4c8\uc744 \uc4f0\ubbc0\ub85c \ubcc4\ub2e4\ub978 \ucd94\uac00\uc791\uc5c5\uc5c6\uc774 \uc124\uc815\ubcc0\uacbd\uc73c\ub85c \uac00\ub2a5\ud558\ub2e4. Ctrl+Shift+P\ub85c \ucee4\ub9e8\ub4dc \ud314\ub808\ud2b8\ub97c \ub744\uc6b0\uace0 settings \uc2e4\ud589 Python \ud655\uc7a5\uc774 \uc124\uce58\ub418\uc5b4 \uc788\ub2e4\ub294 \uac00\uc815\ud558\uc5d0, <a href=\"http:\/\/batmask.net\/index.php\/2020\/04\/07\/358\/\" class=\"btn btn-link continue-link\">\ub354 \uc77d\uae30<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,33],"tags":[35,74,111,132,55],"class_list":["post-358","post","type-post","status-publish","format-standard","hentry","category-note4reference","category-python","tag-python","tag-unittest","tag-vs-code","tag-unit-test-kr","tag-python-kr"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts\/358","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/comments?post=358"}],"version-history":[{"count":4,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts\/358\/revisions"}],"predecessor-version":[{"id":372,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/posts\/358\/revisions\/372"}],"wp:attachment":[{"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/media?parent=358"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/categories?post=358"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/batmask.net\/index.php\/wp-json\/wp\/v2\/tags?post=358"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}