I haven't looked in detail yet as I just started using SHITTY
myself...but it does seem that the method to invoke the build actually
cares that it failed or not before invoking the verify.groovy. I agree
this should be optional, but per test...or better just ignore the error
code and provide a method like the verifier had to verify the build log
didn't have errors.

 

From: Rod Coffin [mailto:[EMAIL PROTECTED] 
Sent: Monday, February 11, 2008 6:23 PM
To: [email protected]
Subject: [mojo-user] Expected failures in tests launched by SHITTY
plugin

 

I have written a test for a plugin using the SHITTY plugin that I expect
to fail.  This is because I am testing that my plugin correctly fails
the build under certain situations.  But I can't find a way to ask the
SHITTY plugin to not fail the build for my plugin when the test build
that I expect to fail does indeed fail.  I have tried setting the
'ignoreFailures' option but then legitimate failures are ignored as
well.  I do verify the reason for the failure in the test build's
validate.groovy script and I would like failures thrown from that script
to fail the plugin's build.  Does anyone have suggestions as to how I
can achieve the desired behavior?

Thanks,

Rod

Reply via email to