Guys,

 

I'm stuck with working on a new feature due to this, so I hope you can help
me quickly:

 

JUnit knows assumptions, assertions and exceptions. Failing assertions will
FAIL tests (hence will fail maven builds). Failing assumptions will SKIP
tests (hence will pass maven builds). Exceptions will ERROR tests (hence
will break maven builds). Unfortunately today I noticed that assumptions
actually ERROR test (hence fail builds) in Maven!

 

(I simply added another test to maven dependency plugin which contains an
always-failing assumption to proof the claim)

 

[INFO] Results:

[INFO]

[ERROR] Errors:

[ERROR]   TestCopyMojo.proofClaim:274 ┐ AssumptionViolated always skip

[INFO]

[ERROR] Tests run: 257, Failures: 0, Errors: 1, Skipped: 0

 

It seems maven treats JUnit assumptions just like JUnit exceptions! :-(

 

Can someone tell my why that happens? Do I have to set some option tell
Maven it shall SKIP instead of ERROR on failing assumptions?!

 

Thanks in advance!

-Markus Karg

 

Reply via email to