2024-08-01ãã1ã¶æéã®è¨äºä¸è¦§
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ Flywayã®ãã¤ã°ã¬ã¼ã·ã§ã³ãã©ã管çããã®ãããã®ããªã¨æ©ãã ãã¨ããã£ã¦ãã¡ãã£ã¨ã¾ã¨ãã¦ãããããªã¨ã æ¹éï¼ Gitã使ãããã©ã³ãã§éçº â ãã¼ã¸ãããã¨ãã£ãããã¼ãçµãã§ãããã¼ã éçºãèæ¯ã«ãã¦ãã¾â¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ MySQLãæ±ãæã®ã¯ã©ã¤ã¢ã³ããã¼ã«ã¯ãå¾æ¥ã®MySQLã¯ã©ã¤ã¢ã³ãï¼mysqlã³ãã³ãï¼ããã»ã¼MySQL Shellã«ç§»ãã¦ãã¾ãã ã§ãMySQL Shellã§Unixãã¡ã¤ã³ã½ã±ããã§MySQLãµã¼ãã¼ã«æ¥ç¶ãããã¨ããæã«æåã©ãããããâ¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ MySQL 8.4ããªãªã¼ã¹ããã¦ãã4ã¶æã»ã©çµã£ãã®ã§ããããã1度ã¤ã³ã¹ãã¼ã«ããè¦ã¦ãããããªã¨ãããã¨ã§ã ãªãªã¼ã¹äºæ ã®ãã£ããã¢ããããã¦ããã¾ãã MySQL 8.4 MySQL 8.4ã¯ãMySQLã®åãã¦ã®LTSãªãªã¼ã¹ã§ãâ¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ å æ¥ãECMAScript Modulesã使ã£ããã¹ããæ¸ãæã«ãVitestãJestã®ä»£ããã«ä½¿ã£ã¦ã¿ãã¨ããã¨ã³ããªã¼ãæ¸ãã¾ããã Vitestã§TypeScript à Node.jsï¼ECMAScript Modulesï¼ã®ãã¹ããæ¸ã - CLOVER ä»åã¯ããå°ãNodâ¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ åã«ãECMAScript Modulesã使ãããã«è¨å®ããNode.jsã¨TypeScriptãæ±ãã¨ã³ããªã¼ãæ¸ãã¾ããã TypeScript à Node.jsã§ECMAScript Modulesã試ã - CLOVER ãã®æããã¹ãã³ã¼ããæ¸ãã®ã«Jestã使ã£ãã®ã§ãããECâ¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ tsconfig.jsonã«ã©ããããã®ãæå®ããããããã ããï¼ã¨ããæ°ã«ãªãã®ã§ããããªã«ãåèã«ãªããã®ã欲ããã¨ããã§ãã ãã®ãããªç®çã§TSConfig Basesã¨ãããã®ããããããã®ã§ãå°ãè¦ã¦ã¿ã¾ããã TSConfig â¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ åã«ãtsconfig.jsonã¯extendsã§æ¡å¼µï¼ãªã¼ãã¼ã©ã¤ãï¼ã§ãããããã¨ããã¨ã³ããªã¼ãæ¸ãã¾ããã tsconfig.jsonãextendsãã¦ãè¨å®å 容ããªã¼ãã¼ã©ã¤ããã - CLOVER ãããã£ããã§ãextendsã«æå®ãã対象ãè¤æ°â¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ å°ãåã«ãNode.jsã§ECMAScript Modulesã試ãã¦ã¿ã¾ããã Node.jsã§ECMAScript Modulesã試ã - CLOVER ååã¯ãããªãTypeScriptã§ããã¨ããããªããªãã ããããç´ ã®JavaScriptï¼Node.jsï¼ã§ECMAScript Modulesãæ±â¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ TiDBã®ã¢ã¼ããã¯ãã£ã¼ããã£ããã¨ææ¡ãããã¨ããããã¡ãã®ç¶ãã§ãã â»ãã¡ãã®ã¨ã³ããªã¼ããã®ã·ãªã¼ãºã®ã¤ã³ããã¯ã¹ãã¼ã¸ã«ããªã£ã¦ãã¾ã TiDBã®ã¢ã¼ããã¯ãã£ã¼ããã£ããã¨çºãã¦ã¿ãï¼å ¨ä½æ¦è¦ãã¹ãã¬â¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ JaCoCo Maven Pluginã®ãããªJavaVMå¼æ°ã使ããããªMavenãã©ã°ã¤ã³ã¨ãMaven Surefire Pluginï¼Maven Failsafe Pluginãï¼ã®argLineã ä¸ç·ã«ä½¿ãã¨ã¡ãã£ã¨ãããã®ã§ã¡ã¢ã¨ãã¦ã Maven Surefire Pluginï¼Maven Failâ¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ Mavenããã¸ã§ã¯ãã«JaCoCoãå°å ¥ããã¡ã¢ã JaCoCo JaCoCoã¯Javaã®ã«ãã¬ãã¸ãåå¾ããã©ã¤ãã©ãªã¼ã§ããWebãµã¤ãã¯ãã¡ãã EclEmma - JaCoCo Java Code Coverage Library ããã¥ã¡ã³ãã¯ãã¡ãã JaCoCo - Documenâ¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ Maven Surefire Pluginã«ã¯includes ï¼ includeãexcludes ï¼ excludeã§ãã¹ããçµãè¾¼ãã ãé¤å¤ãããããæ©è½ãããã¾ãã ããã¥ã¡ã³ããè¦ã¦ããã¨ããªã«ã¨ãããããã¦ããã®ãããã¤ãããããããªããªãã®ã§èª¿ã¹â¦
ããã¯ããªã«ããããã¦æ¸ãããã®ï¼ Javaã®Recordsã使ã£ã¦ããã¨ãã«ãã¼ã欲ãããªã¨æãã®ã§ãããèªåçæãã¦ãããã©ã¤ãã©ãªã¼ããããããªã®ã§è©¦ãã¦ã¿ã¾ããã Recordsã®ãã«ãã¼ãçæããã©ã¤ãã©ãªã¼ ä»åè¦ã¤ããã®ã¯ãã¡ãã§ãã JiltãRecorâ¦