No tests were executed!

「No tests were executed!」のこれまで経験した解決パターン


パターン1:
pom.xmlに以下を追加

<build>
        <!--<sourceDirectory>src</sourceDirectory>-->
        <plugins>
          <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
           <version>2.22.2</version>
         </plugin>
        </plugins>
    </build>


パターン2:
プロジェクトをgit cloneからやりなおす
確実に解決するが面倒


パターン3:
mvn のコマンドをsurefire:testからtestに変更