gradleã®Testã¿ã¹ã¯ã«filterãæ¸ããã
ãã®filterã«æ¸ãã¨ãã®ãã¿ã¼ã³ã®æå®ã®è§£éããããã
gradle/TestSelectionMatcher.java at master · gradle/gradle · GitHub
æå®ãããã¿ã¼ã³æååããã¢ã¹ã¿ãªã¹ã¯ã§ã¹ããªãããã¦ã
ããããã®é ã«".*"ãä»ãã¦ãããã¿ã¼ã³ã³ã³ãã¤ã«ãã¦ããããã«è¦ããã
ã¢ã¹ã¿ãªã¹ã¯ä»¥å¤ã¯ãPattern.quote(String)ã§ãå
¨é¨ãªãã©ã«ã«ãã¦ããã
ããªãªãããªãã©ã«ã«ãªããããªããã
test01ãtest02ã¡ã½ããã®äºã¤ã ããããããããã¨ãã«ã
æ£è¦è¡¨ç¾ã§[1-2]ã¿ãããªã®ãæ¸ããããã©è§£éãã¦ãããªãããã
ææ
¢ãã¦ããªãªãã«ããã¨ãã¦ããªãã©ã«ã«è§£éããããç¡çã ããã
äºåæ¸ãã¨ãããã¨ãªã®ããã
test << { filter { includeTestsMatching '*test01' includeTestsMatching '*test02' } }
ã©ããPattern.compileããã®ã«ããªãã§æ£è¦è¡¨ç¾ãåãä»ããªãã