{"id":7743,"date":"2016-01-16T12:50:40","date_gmt":"2016-01-16T03:50:40","guid":{"rendered":"http:\/\/www.moonmile.net\/blog\/?p=7743"},"modified":"2016-01-17T00:14:48","modified_gmt":"2016-01-16T15:14:48","slug":"tdd-%e3%81%af%e3%83%ad%e3%82%b9%e3%83%88%e3%83%86%e3%82%af%e3%83%8e%e3%83%ad%e3%82%b8%e3%83%bc%e5%8c%96%e3%81%97%e3%81%a6%e3%81%84%e3%82%8b%e3%81%8b%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.moonmile.net\/blog\/archives\/7743","title":{"rendered":"TDD \u306f\u30ed\u30b9\u30c8\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u5316\u3057\u3066\u3044\u308b\u304b\uff1f"},"content":{"rendered":"<p>\u4f55\u6545\u304b\u3001\u82f1\u8a9e\u3067 CppUnit \u306e\u89e3\u8aac\u3092\u5c0f\u4e00\u6642\u9593\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u5f8c\u306e\u5c55\u958b\u7684\u306b\u6b8b\u3057\u3066\u304a\u304f\u3002<\/p>\n<h2>\u4f7f\u3063\u3066\u3044\u308b\u4eba\u306f\u4f7f\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u304c<\/h2>\n<p>github \u306e\u30b3\u30fc\u30c9\u3092\u898b\u308b\u3068\u5927\u62b5\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u7cfb\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001 test \u30d5\u30a9\u30eb\u30c0\u304c\u3042\u3063\u3066\u30c6\u30b9\u30c8\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304c\u3042\u308b\u3002\u307e\u3042\u3001\u5b9f\u969b\u306b\u81ea\u5206\u3067\u3084\u3063\u3066\u307f\u308b\u3068\u9069\u5f53\u306a xUnit \u3092\u66f8\u304b\u306a\u3044\u3068\u7acb\u3061\u884c\u304b\u306a\u3044\u5834\u5408\u304c\u591a\u3044\uff08\u30b9\u30bf\u30fc\u30c8\u6642\u70b9\u306e\u8907\u96d1\u3055\u306b\u8ffd\u3044\u3064\u304b\u306a\u3044\uff06\u5f8c\u3067\u6df7\u4e71\u3057\u3066\u4fee\u6b63\u30b3\u30b9\u30c8\u304c\u9ad8\u304f\u306a\u308b\uff09\u306e\u3068\u3067\u6b8b\u3057\u3066\u304a\u304f\u306e\u3068\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u30de\u30cb\u30e5\u30a2\u30eb\u7684\u306a\u3082\u306e\u3068\u3057\u3066\u6b8b\u3057\u3066\u304a\u304f\u3068\u4fbf\u5229\u306a\u306e\u3067\u3061\u3089\u3063\u3068\u66f8\u3044\u3066\u304a\u304f\u3068\u3088\u3044\u3002<\/p>\n<p>\u304c\u3001\u3069\u3053\u3067\u3069\u3046\u9593\u9055\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u304b\u3001\u69d8\u3005\u306a\u539f\u56e0\u3067\u8eab\u306e\u56de\u308a\u306b\u5b9f\u52d9\u3067 TDD \u3092\u3084\u3063\u3066\u3044\u308b\u4eba\u306f\u5c11\u306a\u3044\u2026\u3068\u3044\u3046\u304b\u3044\u306a\u3044\u3002\u3053\u308c\u306f\u4e3b\u306b\u696d\u52d9\u30a2\u30d7\u30ea\u3092\u4f5c\u3063\u3066\u3044\u308b\u79c1\u3060\u304b\u3089\u306a\u306e\u304b\u3001\u6700\u8fd1\u306f\u3042\u307e\u308a\u3067\u3042\u308b\u3053\u3068\u304c\u5c11\u306a\u304f\u306a\u3063\u305f\u306e\u304b\u5206\u304b\u3089\u306a\u3044\u304c\u3001\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u308b\u4eba\u306f\u5c11\u306a\u3044\u3002\u5909\u308f\u308a\u306b\u3001\u5f93\u6765\u901a\u308a\u306e UI \u306e\u6253\u9375\u30c6\u30b9\u30c8\u3092\u3084\u3063\u305f\u308a\u3001Excel \u3067\u7ba1\u7406\u3055\u308c\u305f\u5358\u4f53\u30c6\u30b9\u30c8\u3084\u7d50\u5408\u30c6\u30b9\u30c8\u3092\u7e70\u308a\u8fd4\u3057\u3066\u3044\u308b\u3002<\/p>\n<p>\u304a\u305d\u3089\u304f\u3001XP \u306e\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u696d\u52d9\u30a2\u30d7\u30ea\u958b\u767a\u306b\u53d6\u308a\u5165\u308c\u308b\u306b\u306f\u300c\u30da\u30a2\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u306f\u30b3\u30b9\u30c8\u304c\u9ad8\u3044\u300d\u3001\u300cUnitTest \u3092\u7d99\u7d9a\u7684\u306b\u4f7f\u3046\u306b\u306f\u30b3\u30b9\u30c8\u304c\u639b\u304b\u308b\u300d\u304c\u3042\u308a\u3001\u3082\u3046\u3072\u3068\u3064\u300c\u5358\u4f53\u30c6\u30b9\u30c8\u3092\u3084\u308b\u3068\u3001\u5358\u4f53\u30c6\u30b9\u30c8\u306e\u30d0\u30b0\u7968\u304c\u51fa\u306a\u3044\u300d\u304b\u3064\u300c\u5358\u4f53\u30c6\u30b9\u30c8\u306e\u9805\u76ee\u6570\u304c\u6570\u3048\u3089\u308c\u306a\u3044\u300d\u3068\u3044\u3046\u3082\u306e\u304c\u3042\u308b\u3002\u3053\u308c\u306f\u30012000\u5e74\u9803\u306b XP\/TDD \u3092\u5c0e\u5165\u3057\u305f\u3068\u304d\u304b\u3089\u8a00\u308f\u308c\u3066\u304d\u305f\u3082\u306e\u3060\u3002\u5951\u7d04\u6642\u306b\u5de5\u6570\u898b\u7a4d\u3082\u308a\u3092\u3059\u308b\u3068\u304d\u3001\u300c\u5358\u4f53\u8a66\u9a13\u5de5\u7a0b\u300d\u3092\u542b\u307e\u305b\u3066\u308b\u5fc5\u8981\u304c\u3042\u3063\u3066\u3001\u5358\u4f53\u30c6\u30b9\u30c8\u306e\u9805\u76ee\u6570\u3084\u30d0\u30b0\u6570\u3068\u3044\u3046\u6307\u6a19\u306b\u5f15\u304d\u305a\u3089\u308c\u3066\u3057\u307e\u3046\u3068\u3044\u3046\u30d1\u30bf\u30fc\u30f3\u3067\u3042\u308b\u3002\u307e\u3042\u3001\u305d\u3046\u3044\u3046\u5834\u5408\u306f<\/p>\n<ul>\n<li>\u5358\u4f53\u30c6\u30b9\u30c8\u8fbc\u307f\u306e\u88fd\u9020\u5de5\u7a0b\uff0f\u30ac\u30f3\u30c8\u30c1\u30e3\u30fc\u30c8\u3068\u3059\u308b\u3002<\/li>\n<li>\u5358\u4f53\u30c6\u30b9\u30c8\u306e\u4e0d\u5177\u5408\u7968\u306f\u51fa\u3055\u306a\u3044\u3002<\/li>\n<\/ul>\n<p>\u3067\u62bc\u3057\u5207\u308b\u306e\u304c\u30d9\u30bf\u30fc\u3002\u306a\u3093\u3089\u304b\u306e QA \u7d61\u307f\u3067\u62bc\u3057\u5207\u3089\u308c\u308b\u5834\u5408\u306b\u306f\u3001\u4e0d\u5177\u5408\u7968\u81ea\u4f53\u3092\u3067\u3063\u3061\u4e0a\u3052\u308b\u3068\u3044\u3046\u624b\u6bb5\u3092\u3068\u308b\u3002<\/p>\n<p>\u305d\u3093\u306a\u8a33\u3067 TDD \u306f\u5b9f\u8cea\u3042\u307e\u308a\u5e83\u304c\u3089\u305a\u306b\u5ec3\u308c\u3066\u3057\u307e\u3063\u305f\u3082\u306e\u306e\u3001\u672c\u8cea\u7684\u306b\u4fbf\u5229\u306a\u3068\u3053\u308d\u306f\u4fbf\u5229\u3060\u3068\u308f\u304b\u3063\u3066\u3044\u308b\u4eba\u304c\u4f7f\u3063\u3066\u3044\u308b\u3001\u3068\u3044\u3046\u72b6\u614b\u306a\u306e\u3060\u308d\u3046\u3002\u3061\u306a\u307f\u306b\u8a00\u3048\u3070\u3001UnitTest \u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u4f7f\u3046\u304b\u4f7f\u308f\u306a\u3044\u304b\u3067\u3001\u79c1\u7684\u306b\u306f\u5de5\u6570\u7684\u306b\u306f\u500d\u4ee5\u4e0a\u7570\u306a\u308b\u3002MVVM \u30d1\u30bf\u30fc\u30f3\u306e\u89e3\u8aac\u306e\u3068\u304d\u306b\u3082\u3088\u304f\u8a00\u3046\u306e\u3060\u304c\u3001<\/p>\n<ul>\n<li>\u5185\u90e8\u30ed\u30b8\u30c3\u30af\uff08M-VM\uff09\u90e8\u5206\u3092\u3067\u304d\u308b\u3060\u3051\u591a\u304f\u3057\u3066\u3001UnitTest \u3092\u4f7f\u3046\u3002<\/li>\n<li>UnitTest \u304c\u9069\u7528\u3057\u3084\u3059\u3044\u30af\u30e9\u30b9\u69cb\u9020\u306b\u5fb9\u3059\u308b\uff08\u3067\u304d\u308b\u3060\u3051\u30e2\u30c3\u30af\u3092\u4f7f\u308f\u306a\u3044\uff09\u3002<\/li>\n<li>\u9069\u7528\u5916\u306e\u5834\u5408\u306f\u3001\u901a\u5e38\u306e UI \u6253\u9375\u3067\u884c\u3046\u3002<\/li>\n<\/ul>\n<p>\u3068\u3044\u3046\u30b9\u30bf\u30a4\u30eb\u304c\u826f\u3044\u3002TDD \u3092\u9069\u7528\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u5931\u6557\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u304c\u591a\u3044\u306e\u304c\u3001\u3059\u3079\u3066\u306e TDD \u3092\u9069\u7528\u3057\u3088\u3046\u3068\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3067\u3042\u308b\u3002\u3069\u3093\u306a\u65b9\u6cd5\u3067\u3082\u300c\u9069\u7528\u53ef\u80fd\u306a\u7bc4\u56f2\u300d\u304c\u3042\u308b\u306e\u3067\u3001TDD \u3067\u82e6\u624b\u306a\u90e8\u5206\u306f\u591a\u3044\u3002\u7279\u306b\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u3044\u308d\u3044\u308d\u306a\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u6253\u9375\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u306f\u3001TDD \u3060\u3051\u3067\u306f\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u5834\u5408\u304c\u3042\u308b\uff08\u3068\u306f\u3044\u3048\u3001\u89e3\u6790\u7684\u306b UnitTest \u3092\u4f7f\u3046\u3068\u3046\u307e\u304f\u3044\u304f\u30d1\u30bf\u30fc\u30f3\u3082\u591a\u3044\uff09\u3002\u305d\u306e\u3042\u305f\u308a\u3092\u542b\u3081\u3066\u3001\u90e8\u5206\u7684\u306b XP\/TDD \u3092\u53d6\u308a\u5165\u308c\u308c\u3070\u3088\u3044\u306e\u3067\u3042\u308b\u3002<\/p>\n<h2>\u3061\u3087\u3063\u3068\u5909\u308f\u3063\u305f UnitTest \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af<\/h2>\n<p>.NET Framework \u306e\u5834\u5408\u306f\u3001Visual Studio \u3067 MS \u8b39\u88fd\u306e UnitTest \u3092\u4f7f\u3063\u305f\u308a\u3001\u7531\u7dd2\u6b63\u3057\u3044 NUnit \u3092\u4f7f\u3063\u305f\u308a\u3059\u308b\u3002Java \u306e\u5834\u5408\u306f JUnit \u3060\u3057\u3001\u63a2\u305b\u3070\u305f\u3044\u3066\u3044\u306e\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u306b UnitTest \u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u308b\u3002<\/p>\n<p>UnitTest \u306e\u57fa\u672c\u306f\u7c21\u5358\u3067\u3001<\/p>\n<ol>\n<li>\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\uff08\u3067\u304d\u308b\u3060\u3051\u540c\u3058\u8a00\u8a9e\u3067\uff09\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u3059\u308b\u3002<\/li>\n<li>\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u4f55\u7b49\u304b\u306e\u5f62\u3067\u5b9f\u884c\u3059\u308b\u3002<\/li>\n<li>\u30c6\u30b9\u30c8\u306e\u7d50\u679c\u3092\u81ea\u52d5\u5224\u5225\u3059\u308b\u3002<\/li>\n<\/ol>\n<p>\u306e 3 \u70b9\u304c\u3042\u308c\u3070\u5341\u5206\u3067\u3042\u308b\u3002\u4ee5\u524d\u3001Visual Test \u3068\u3044\u3046 GUI \u306e\u30c6\u30b9\u30c8\u3092 VB \u3092\u4f7f\u3063\u3066\u30c6\u30b9\u30c8\u3059\u308b\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u304c\u3042\u3063\u305f\u304c\u3042\u307e\u308a\u306f\u3084\u3089\u306a\u304b\u3063\u305f\u3002\u4e2d\u8eab\u304c C++\/MFC \u3067\u66f8\u304b\u308c\u3066\u3044\u3066\u3082\u3001VB \u3067\u30c6\u30b9\u30c8\u3057\u306a\u3044\u99c4\u76ee\u3060\u3063\u305f\u304b\u3089\u3060\u3002\u307e\u3042\u3001GUI \u306e\u81ea\u52d5\u30c6\u30b9\u30c8\u3063\u3066\u306e\u304c\u96e3\u3057\u3044\u3068\u3044\u3046\u306e\u3042\u308b\u3093\u3060\u3051\u3069\u3002<\/p>\n<p>\u30c6\u30b9\u30c8\u306e\u5b9f\u884c\u74b0\u5883\u306f\u3001\u3067\u304d\u308b\u3060\u3051\u5b9f\u74b0\u5883\u3068\u540c\u3058\u306b\u3042\u308f\u305b\u308b\u3002\u4f8b\u3048\u3070\u3001\u30ac\u30e9\u30b1\u30fc\u306e\u958b\u767a\u3092\u3057\u3066\u3044\u305f\u3068\u304d\u306b\u306f CPU \u306e\u7a2e\u985e\u304c\u7570\u306a\u308b\u306e\u3067\u3001PC \u306e\u30c6\u30b9\u30c8\u3068\u30ac\u30e9\u30b1\u30fc\u5185\u306e\u30c6\u30b9\u30c8\u3067\u306f\u305a\u308c\u304c\u751f\u3058\u308b\u53ef\u80fd\u6027\u304c\u3042\u308b\u3002\u306e\u3067\u3001\u30ac\u30e9\u30b1\u30fc\u5185\u3067\u30c6\u30b9\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b\u3088\u3046\u306b\u3059\u308b\u306e\u304c\u30d9\u30bf\u30fc\u3001\u3060\u304c\u30ed\u30b8\u30c3\u30af\u7684\u306b\u306f PC \u3067\u3082\u5341\u5206\u3060\u3063\u305f\u308a\u3059\u308b\u3002<\/p>\n<p>\u7d50\u679c\u3092\u81ea\u52d5\u5224\u5225\u3059\u308b\u306e\u306f\u30011,2,3 \u306e\u30b5\u30a4\u30af\u30eb\u3092\u81ea\u52d5\u7684\u306b\u56de\u3059\u305f\u3081\u306b\u5fc5\u9808\u3067\u3042\u308b\u3002\u6614 TDD \u51fa\u308b\u524d\u306b Excel \u3067\u5358\u4f53\u8a66\u9a13\u9805\u76ee\u3092\u66f8\u3044\u3066\u81ea\u52d5\u3067\u52d5\u304b\u3059 VBA \u3092\u7d44\u3093\u3060\u3053\u3068\u304c\u3042\u3063\u305f\u304c\u3001\u7d50\u679c\u306f\u76ee\u691c\u3067\u884c\u3063\u3066\u3044\u305f\u3002\u3044\u307e\u8003\u3048\u308c\u3070\u3001\u7d50\u679c\u3092 VBA \u3067\u53d6\u308a\u8fbc\u3093\u3067 Countif \u3042\u305f\u308a\u3067\u96c6\u8a08\u3059\u308c\u3070\u3088\u304b\u3063\u305f\u306e\u3067\u3042\u308b\u3002<\/p>\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u3001\u901a\u5e38\u306e PC \u3042\u308b\u3044\u306f\u30b5\u30fc\u30d0\u30fc\u3067\u52d5\u304f UnitTest \u306f\u30d7\u30ed\u30b0\u30e9\u30e0\u8a00\u8a9e\u5bfe\u5fdc\u3092\u305d\u306e\u307e\u307e\u4f7f\u3044\u3001PC \u4ee5\u5916\u306e\u5834\u5408\u306f\u3061\u3087\u3063\u3068\u3057\u305f\u5de5\u592b\u304c\u5fc5\u8981\u306b\u306a\u308b\u3002<\/p>\n<h2>CppUnit<\/h2>\n<p>CppUnit &#8211; C++ port of JUnit &#8211; Browse \/cppunit\/1.12.1 at SourceForge.net<br \/>\n<a href=\"http:\/\/sourceforge.net\/projects\/cppunit\/files\/cppunit\/1.12.1\/\">http:\/\/sourceforge.net\/projects\/cppunit\/files\/cppunit\/1.12.1\/<\/a><\/p>\n<p>2008\u5e74\u3067\u66f4\u65b0\u304c\u6b62\u307e\u3063\u3066\u3044\u308b\u304c\u3001\u3053\u308c\u3067\u5341\u5206\u3002Visual C++, g++ \u3067\u52d5\u304f\u306e\u3067\u3053\u308c\u3092\u4f7f\u3044\u7d9a\u3051\u3066\u3044\u308b\u3002\u4e00\u6642\u671f\u306f\u66f4\u65b0\u7d50\u679c\u304c Green\/Red \u306b\u306a\u308b\u3053\u3068\u304c\u91cd\u8981\u3060\u3063\u305f\u308a\u3057\u305f\u304c\u3001\u5b9f\u306f\u305d\u308c\u306f\u4e9b\u672b\u306a\u3068\u3053\u308d\u3067\u3057\u304b\u306a\u3044\u3002\u672c\u8cea\u306f\u3001All Success \u306a\u306e\u304b Any Failure \u306a\u306e\u304b\u306b\u3042\u308b\u3002\u5931\u6557\u3057\u305f\u3053\u3068\u304c\u78ba\u8a8d\u3067\u304d\u3066\u3001\u3069\u3053\u3067\u30a8\u30e9\u30fc\u306b\u306a\u3063\u305f\u304b\u5224\u5225\u3067\u304d\u308c\u3070\u305d\u308c\u3067\u5341\u5206\u3067\u3042\u308b\u3002<\/p>\n<p><a href=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2016\/01\/image-1.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.moonmile.net\/blog\/wp-content\/uploads\/2016\/01\/image_thumb-1.png\" border=\"0\" alt=\"image\" title=\"image\" width=\"640\" height=\"323\" style=\"background-image: none; padding-top: 0px; padding-left: 0px; display: inline; padding-right: 0px; border: 0px;\" \/><\/a><\/p>\n<p>\u3053\u308c\u306f\u5185\u90e8\u3067 FEM \u3092\u8a08\u7b97\u3059\u308b\u3068\u304d\u306e\u6b6a\u307f\u95a2\u6570\u3092\u30c6\u30b9\u30c8\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u3060\u3002\u3053\u3046\u3044\u3046\u79d1\u5b66\u8a08\u7b97\u306e\u7d50\u679c\u30c1\u30a7\u30c3\u30af\u306b\u4f7f\u3048\u308b\u3002<\/p>\n<h2>FsUnit<\/h2>\n<p>What is FsUnit?<br \/>\n<a href=\"http:\/\/fsprojects.github.io\/FsUnit\/\">http:\/\/fsprojects.github.io\/FsUnit\/<\/a><\/p>\n<p>\u5185\u90e8\u7684\u306b\u306f NUnit \u306e\u30e9\u30c3\u30d1\u30fc\u306a\u306e\u3060\u304c\u3001\u30c6\u30b9\u30c8\u306e\u66f8\u304d\u65b9\u304c\u3061\u3087\u3063\u3068\u7570\u306a\u308b\u3002\u305f\u3044\u3066\u3044\u306e xUnit \u30c6\u30b9\u30c8\u306f assertEqulas( \u671f\u5f85\u5024, \u5b9f\u884c\u5024 ) \u3068\u3044\u3046\u5f62\u3067\u30c6\u30b9\u30c8\u3092\u66f8\u304d\u9023\u306d\u308b\u306e\u3060\u304c\u3001FsUnit \u306e\u5834\u5408\u306f \u5b9f\u884c\u5024 |&gt; should \u671f\u5f85\u5024 \u3068\u3044\u3046\u30c6\u30b9\u30c8\u306e\u66f8\u304d\u65b9\u306b\u306a\u308b\u3002\u671f\u5f85\u5024\u3068\u5b9f\u884c\u5024\u306e\u8a9e\u9806\u304c\u9006\u306a\u306e\u306f\u95a2\u6570\u578b\u8a00\u8a9e\u7279\u878d\u306e\u30ab\u30ea\u30fc\u5316\/\u30d1\u30a4\u30d7\u3092\u4f7f\u3063\u3066\u3044\u308b\u305f\u3081\u3002\u3053\u306e\u8a9e\u9806\u304c\u4fbf\u5229\u304b\u3068\u3044\u3046\u3068\u3001\u5b9f\u306f\u7d50\u69cb\u6df7\u4e71\u3092\u3057\u3066\u3044\u3066\u79c1\u306e\u5834\u5408\u3001CppUnit \u3084 NUnit \u306e\u8a9e\u9806\u306b\u6163\u308c\u3066\u3044\u308b\u306e\u3067\u3088\u304f\u9593\u9055\u3046\u3002<\/p>\n<p>\u3068\u306f\u3044\u3048\u3001\u30d1\u30a4\u30d7\u3092\u4f7f\u3046\u3053\u3068\u3067\u901a\u5e38\u306e assertEqulas \u95a2\u6570\u3068\u306f\u9055\u3063\u305f\u4f7f\u3044\u65b9\u304c\u3067\u304d\u308b\u3002\u7279\u306b\u30d1\u30a4\u30d7\u306e\u9593\u306b\u30ed\u30b0\u306e\u30d5\u30a3\u30eb\u30bf\u3092\u631f\u307f\u8fbc\u3081\u308b\u306e\u306f\u4fbf\u5229\u3060\u3002\u30d0\u30b0\u89e3\u6790\u3092\u3059\u308b\u3068\u304d\u306b<\/p>\n<p>\u5b9f\u884c\u5024 |&gt; dprint |&gt; should be \u2026<\/p>\n<p>\u306e\u3088\u3046\u306b\u3001\u9069\u5207\u306a dprint \u3092\u7528\u610f\u3057\u3066\u631f\u307f\u8fbc\u3081\u308b\u3088\u3046\u306b\u3059\u308b\u30b9\u30bf\u30a4\u30eb\u304c\u3067\u304d\u308b\u3002<\/p>\n<h2>ArduinoUnit<\/h2>\n<p>\u5148\u306b\u66f8\u3044\u305f\u901a\u308a\u3001\u7d44\u307f\u8fbc\u307f\u30b7\u30b9\u30c6\u30e0\u3092\u4f5c\u3063\u3066\u3044\u308b\u3068\u304d\u306f\u5b9f\u6a5f\u3067\u52d5\u304f\u3088\u3046\u306a UnitTest \u3092\u66f8\u304f\u306e\u304c\u30d9\u30b9\u30c8\u3060\u3002Arduino \u306e\u5834\u5408\u306b\u306f Sketch \u3068\u547c\u3070\u308c\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\uff08\u5b9f\u8cea\u3001\u30d7\u30ed\u30b0\u30e9\u30e0\u3060\uff09\u3092\u66f8\u3044\u3066\u52d5\u4f5c\u3055\u305b\u308b\u3002\u8a00\u8a9e\u306f C++ \u98a8\u306b\u306a\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u307b\u307c CppUnit \u304c\u4f7f\u3048\u308b\u3002\u305f\u3060\u3057\u3001 Arduino \u306e sketch \u81ea\u4f53\u304c\u5b8c\u5168\u306b C++ \u6e96\u62e0\u306a\u306e\u304b\u3069\u3046\u304b\u306f\u308f\u304b\u3089\u306a\u3044\u306e\u3067\u3001\u3067\u304d\u308c\u3070 Arduino \u5c02\u7528\u306e UnitTest \u3092\u4f7f\u3063\u3066\u3001\u5b9f\u884c\u306f Arduino \u4e0a\u3067\u3084\u3063\u305f\u307b\u3046\u304c\u3044\u3044\u3002\u7279\u306b\u3001GPIO \u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u5236\u5fa1\u3059\u308b\u3068\u304b\u3001\u30bb\u30f3\u30b5\u30fc\u304b\u3089\u306e\u5024\u3092\u53d6\u5f97\u3059\u308b\u3068\u304b\u306f\u5b9f\u6a5f\u3067\u3057\u304b\u3067\u304d\u306a\u3044\uff08\u52ff\u8ad6\u3001\u30bb\u30f3\u30b5\u30fc\u304b\u3089\u306e\u5024\u306f\u6bce\u56de\u7570\u306a\u308b\u306e\u3067\u3001assertEquals \u306e\u5bfe\u8c61\u3068\u3057\u3066\u306f\u4f7f\u3048\u306a\u3044\u3002\u30bb\u30f3\u30b5\u30fc\u304b\u3089\u8aad\u307f\u8fbc\u3081\u308b\/\u8aad\u307f\u8fbc\u3081\u306a\u3044\u3001\u3068\u304b BLE \u901a\u4fe1\u3092\u3059\u308b\u3068\u304b\u3001\u305d\u3046\u3044\u3046\u6271\u3044\u306b\u306a\u308b\uff09\u3002<\/p>\n<p>mmurdoch\/arduinounit: ArduinoUnit is a unit testing framework for Arduino libraries<br \/>\n<a href=\"https:\/\/github.com\/mmurdoch\/arduinounit\">https:\/\/github.com\/mmurdoch\/arduinounit<\/a><\/p>\n<p>\u307e\u3060\u4f7f\u3063\u3066\u307f\u305f\u3053\u3068\u306f\u306a\u3044\u304c\u3001\u3072\u3068\u901a\u308a AssertEquals \u304c\u4f7f\u3048\u3066\u7d50\u679c\u304c\u30b7\u30ea\u30a2\u30eb\u901a\u4fe1\u3067\u9001\u3089\u308c\u3066\u304f\u308b\u3089\u3057\u3044\u3002BLE\u3084WiFi \u30e2\u30b8\u30e5\u30fc\u30eb\u306e\u901a\u4fe1\u7cfb\u3068\u304b\u3092\u4f5c\u308b\u3068\u304d\u306b\u4fbf\u5229\u305d\u3046\u3002<\/p>\n<h2>Xamarin \u306e UI Test App<\/h2>\n<p>Xamarin.UITest &#8211; Xamarin<br \/>\n<a href=\"https:\/\/developer.xamarin.com\/guides\/testcloud\/uitest\/\">https:\/\/developer.xamarin.com\/guides\/testcloud\/uitest\/<\/a><br \/>\nXamarin.UITests \u30af\u30a4\u30c3\u30af \u30b9\u30bf\u30fc\u30c8 | Xamarin : XLsoft \u30a8\u30af\u30bb\u30eb\u30bd\u30d5\u30c8<br \/>\n<a href=\"http:\/\/www.xlsoft.com\/jp\/products\/xamarin\/uitest-quickstarts.html\">http:\/\/www.xlsoft.com\/jp\/products\/xamarin\/uitest-quickstarts.html<\/a><\/p>\n<p>Xamarin Test Cloud \u304c\u5fc5\u9808\u3063\u307d\u3044\u306e\u3060\u304c\uff08\u30c6\u30b9\u30c8\u81ea\u4f53\u306f\u30ed\u30fc\u30ab\u30eb\u3067\u5b9f\u884c\u3067\u304d\u308b\uff1f\uff09\u3001Android\/iOS \u4e0a\u3067\u30c6\u30b9\u30c8\u3092\u3059\u308b\u30c4\u30fc\u30eb\u3067\u3042\u308b\u3002\u3053\u308c\u3082\u8a66\u3057\u305f\u3053\u3068\u304c\u306a\u3044\u306e\u3067\u8a18\u4e8b\u3092\u8aad\u3080\u9650\u308a\u3001\u6614\u306e Visual Test \u306b\u8fd1\u3044\u30b9\u30bf\u30a4\u30eb\u3092\u53d6\u3063\u3066\u3044\u308b\u3002UI \u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306b\u76f4\u63a5\u4ee3\u5165\u3092\u3059\u308b\u5f62\u306b\u306a\u308b\u3002\u305f\u3060\u3057\u3001\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u81ea\u4f53\u304c C# \u3067\u3042\u308b\u306e\u3068\u3001Xamarin \u81ea\u4f53\u304c C# \u3067\u7d44\u3080\uff08F#\/VB \u3067\u3082\u53ef\u80fd\u3060\u3051\u3069\uff09\u306e\u3067\u3001\u30c6\u30b9\u30c8\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u3057\u3066\u540c\u3058\u8a00\u8a9e\u3092\u4f7f\u3048\u308b\u3002\u30b9\u30de\u30fc\u30c8\u30d5\u30a9\u30f3\u306e\u30c6\u30b9\u30c8\u306b\u7279\u5316\u3057\u3066\u3044\u308b\u306e\u3067\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u5165\u529b\u3068\u753b\u9762\u30ad\u30e3\u30d7\u30c1\u30e3\u304c\u3067\u304d\u308b\u306e\u304c\u30e1\u30ea\u30c3\u30c8\u3060\u308d\u3046\u3002<\/p>\n<p>\u5185\u90e8\u7684\u306b\u306f NUnit \u3067\u52d5\u3044\u3066\u3044\u308b\u3088\u3046\u306a\u306e\u3067\u3001Xamarin.UITest.IApp \u3068 ITestServer \u3092\u5b9f\u88c5\u3059\u308c\u3070\u30ed\u30fc\u30ab\u30eb\u3067\u52d5\u304b\u3059\u9650\u308a Xamarin Test Cloud \u306f\u5fc5\u8981\u306a\u3044\u306e\u3067\u306f\u306a\u3044\u304b\uff1f\u3068\u3044\u3046\u4f5c\u308a\u306b\u306a\u3063\u3066\u3044\u308b\u3002\u52ff\u8ad6\u3001Xamarin Test Cloud\u00a0 \u81ea\u4f53\u306f Android \u306e\u3044\u308d\u3044\u308d\u306a\u6a5f\u7a2e\u3067\u52d5\u304f\u3068\u3044\u3046\u30e1\u30ea\u30c3\u30c8\u304c\u3042\u308b\u306e\u3067\u3001\u624b\u5143\u306b\u3042\u308b\u6a5f\u7a2e\u9650\u5b9a\u306b\u306a\u308b\u3060\u308d\u3046\u3051\u3069\u3002<\/p>\n<h2>Android Studio \u3067 UnitTest<\/h2>\n<p>AndroidStudio\u3067UnitTest\u3092\u884c\u3046 | Anysense Blog<br \/>\n<a href=\"http:\/\/blog.anysense.co.jp\/app\/androidunittest\/\">http:\/\/blog.anysense.co.jp\/app\/androidunittest\/<\/a><\/p>\n<p>\u3053\u3061\u3089\u306e\u307b\u3046\u306f\u3001\u7531\u7dd2\u6b63\u3057\u3044 JUnit \u3092\u4f7f\u3063\u305f Android \u306e\u30c6\u30b9\u30c8\u3002\u3053\u3063\u3061\u306e UnitTest \u306f Android Studio \u4e0a\u3067\u52d5\u304b\u3059\u30d1\u30bf\u30fc\u30f3\u306a\u306e\u3067 UI \u3092\u4ecb\u5728\u3057\u306a\u3044\u3002\u30ed\u30b8\u30c3\u30af\u306a\u3069\u3092\u30c6\u30b9\u30c8\u3068\u304d\u306b\u4f7f\u3046\u3002<\/p>\n<p>\u3053\u308c\u3082\u672c\u6765\u306a\u3089\u3070\u3001Android \u5b9f\u6a5f\u4e0a\u3067\u52d5\u304b\u3057\u3066\u30ed\u30b0\u306a\u3069\u306e\u5f62\u3067\u7d50\u679c\u304c\u901a\u77e5\u3055\u308c\u308b\u3068\u3088\u3044\u3002\u305f\u3076\u3093\u3001\u30c6\u30b9\u30c8\u7528\u306e\u753b\u9762\u3092\u4f5c\u3063\u3066\u300c\u30c6\u30b9\u30c8\u5b9f\u884c\u300d\u306e\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068 TestMain \u304c\u8d77\u52d5\u3055\u308c\u308b\u3068\u3044\u3046\u5f62\u306b\u3059\u308c\u3070\u3088\u3044\u3068\u601d\u3046\u3002<\/p>\n<h2>Swift \u3067 UnitTest<\/h2>\n<p>Swift 2 + Xcode 7: Unit Testing Access Made Easy!!!!<br \/>\n<a href=\"https:\/\/www.natashatherobot.com\/swift-2-xcode-7-unit-testing-access\/\">https:\/\/www.natashatherobot.com\/swift-2-xcode-7-unit-testing-access\/<\/a><\/p>\n<p>\u4ee5\u524d\u304b\u3089\u3001Xcode \u306b\u306f test \u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u4f5c\u308b\u304b\u5426\u304b\u306e\u30b9\u30a4\u30c3\u30c1\u306f\u3042\u308b\u3082\u306e\u306e\u4f7f\u3063\u305f\u3053\u3068\u304c\u306a\u3044\u3002\u307e\u3042\u4ed5\u4e8b\u304c\u3089\u57f7\u7b46\u7528\u306e\u30b5\u30f3\u30d7\u30eb\u3092\u4f5c\u308b\u3053\u3068\u304c\u591a\u3044\u306e\u3067\u5358\u4f53\u30c6\u30b9\u30c8\u3092\u3084\u308b\u3053\u3068\u81ea\u4f53\u304c\u5c11\u306a\u3044\u306e\u3060\u304c\u3002<\/p>\n<p>\u3053\u308c\u3082 Android Studio \u3068\u540c\u3058\u3088\u3046\u306b Xcode \u4e0a\u3067\u30c6\u30b9\u30c8\u3092\u5b9f\u884c\u3059\u308b\u30d1\u30bf\u30fc\u30f3\u3002@testable \u3068\u3044\u3046\u30ad\u30fc\u30ef\u30fc\u30c9\u3092\u4f7f\u3063\u3066\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u3092\u6307\u5b9a\u3059\u308b\uff08NUnit \u306f\u5c5e\u6027\u3092\u4f7f\u3063\u3066\u30c6\u30b9\u30c8\u30af\u30e9\u30b9\u3092\u6307\u5b9a\u3059\u308b\uff09\u3002\u3053\u308c\u3082\u3001\u5b9f\u6a5f\u306e iPhone \u4e0a\u3067\u52d5\u304f\u3053\u3068\u304c\u671b\u307e\u3057\u3044\u3002<\/p>\n<h2>\u53c2\u8003\u6587\u732e<\/h2>\n<p>\u305d\u3093\u306a\u8a33\u3067\u3001\u5b9f\u884c\u74b0\u5883\u304c\u5909\u308f\u308b\u3068\u305d\u308c\u306b\u8ffd\u968f\u3057\u3066 UnitTest \u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3082\u518d\u4f5c\u6210\u3055\u308c\u308b\u3002\u304c\u3001\u3082\u3068\u3082\u3068 UnitTest \u306e\u30d1\u30bf\u30fc\u30f3\u306f\u540c\u3058\u306a\u306e\u3067\u4ed6\u8a00\u8a9e\u3067\u4f5c\u3063\u305f\u30c6\u30b9\u30c8\u30d1\u30bf\u30fc\u30f3\/\u77e5\u8b58\u306f\u6d41\u7528\u3067\u304d\u308b\u3002\u3064\u307e\u308a\u77e5\u8b58\u306e\u84c4\u7a4d\u304c\u3067\u304d\u308b\u5206\u91ce\u306a\u306e\u3060\u3002<\/p>\n<p>\u3068\u3044\u3046\u8a33\u3067\u3001\u30ed\u30b9\u3068\u30c6\u30af\u30ce\u30ed\u30b8\u30fc\u5316\u3057\u3066\u3044\u308b\u3068\u601d\u308f\u308c\u305f\u3089\u518d\u5165\u9580\u3057\u3001\u77e5\u3089\u306a\u304b\u3063\u305f\u3089\u300c\u640d\u300d\u3060\u3088\u3068\u3044\u3046\u5f62\u3067\u304a\u85a6\u3081\u3059\u308b\u3002<\/p>\n<p>[amazonjs asin=&#8221;4894717115&#8243; locale=&#8221;JP&#8221; title=&#8221;\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u9580&#8221;]<\/p>\n<p>\u3061\u306a\u307f\u306b\u3001\u79c1\u304c\u6700\u521d\u306b\u8aad\u3093\u3060 TDD \u306e\u672c\u306f\u3053\u308c\u3067\u3059\u3002<\/p>\n<p>[amazonjs asin=&#8221;4756136877&#8243; locale=&#8221;JP&#8221; title=&#8221;Ruby\u3092256\u500d\u4f7f\u3046\u305f\u3081\u306e\u672c \u6975\u9053\u7de8&#8221;]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f55\u6545\u304b\u3001\u82f1\u8a9e\u3067 CppUnit \u306e\u89e3\u8aac\u3092\u5c0f\u4e00\u6642\u9593\u3059\u308b\u3053\u3068\u306b\u306a\u3063\u3066\u3057\u307e\u3063\u305f\u306e\u3067\u3001\u305d\u306e\u5f8c\u306e\u5c55\u958b\u7684\u306b\u6b8b\u3057\u3066\u304a\u304f\u3002 \u4f7f\u3063\u3066\u3044\u308b\u4eba\u306f\u4f7f\u3063\u3066\u3044\u308b\u3089\u3057\u3044\u304c github \u306e\u30b3\u30fc\u30c9\u3092\u898b\u308b\u3068\u5927\u62b5\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u7cfb\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001 test &hellip; <a href=\"https:\/\/www.moonmile.net\/blog\/archives\/7743\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,85],"tags":[],"class_list":["post-7743","post","type-post","status-publish","format-standard","hentry","category-dev","category-tdd"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/7743","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/comments?post=7743"}],"version-history":[{"count":5,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/7743\/revisions"}],"predecessor-version":[{"id":7753,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/posts\/7743\/revisions\/7753"}],"wp:attachment":[{"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/media?parent=7743"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/categories?post=7743"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.moonmile.net\/blog\/wp-json\/wp\/v2\/tags?post=7743"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}