如何运行失败的maven测试用例

u3r8eeie  于 2021-06-04  发布在  Flume
关注(0)|答案(1)|浏览(364)

maven build的测试用例失败如下:

Failed tests:   
  testDestinationExistsAndSameFileWindows(org.apache.flume.client.avro.TestSpoolingFileLineReader): Platform not recognized
  testIncludePattern(org.apache.flume.client.avro.TestReliableSpoolingFileEventReader): Expected 5 files in working dir
  testIgnorePattern(org.apache.flume.client.avro.TestReliableSpoolingFileEventReader): Expected 5 files in working dir
  testIncludeExcludePatternNoConflict(org.apache.flume.client.avro.TestReliableSpoolingFileEventReader): Expected 5 files in working dir
  testIncludeExcludePatternConflict(org.apache.flume.client.avro.TestReliableSpool

ingFileEventReader): Expected 5 files in working dir

Tests run: 410, Failures: 5, Errors: 0, Skipped: 2
.
.
    [INFO] Apache Flume ....................................... SUCCESS [  1.453 s]
    [INFO] Flume NG SDK ....................................... SUCCESS [  5.688 s]
    [INFO] Flume NG Configuration ............................. SUCCESS [  2.438 s]
    [INFO] Flume Auth ......................................... SUCCESS [  10.654 s]
    [INFO] Flume NG Core ...................................... FAILURE  [  8.792 s]

我只尝试运行失败的testdestinationexists和samefilewindows测试用例,如下所示:
mvn test-dtest=testdestinationexists和samefilewindows收到消息,因为没有执行任何测试!日志
有人能帮我用正确的命令在maven中手动运行失败的testcase吗。

bnlyeluc

bnlyeluc1#

TestDestinationExists和SameFileWindows不是类。对该测试用例使用以下命令:mvn test-dtest=org.apache.flume.client.avro.testspoolingfilelinereader

相关问题