最初のエラーが発生したときに、Maven が JUnit Spring テストを実行しようとするのをやめてもらいたいです。これは可能ですか?
テスト クラスは次のようになり、標準の Maven ターゲットとして実行します。
@ContextConfiguration(locations = {"classpath:/spring-config/store-persistence.xml","classpath:/spring-config/store-security.xml","classpath:/spring-config/store-service.xml", "classpath:/spring-config/store-servlet.xml" })
@RunWith(SpringJUnit4ClassRunner.class)
@Transactional
public class SkuLicenceServiceIntegrationTest
{
...
Spring 構成にエラーがある場合、各テストは Spring コンテキストを再起動しようとしますが、これには 20 秒かかります。これは、ビルドが失敗したと結論付ける前に、すべてのテストを実行しようとするため、テストが失敗したことを長い間見つけられないことを意味します!