Ben Jansen <gradle-u...@...> writes:
> Adam Murdoch <a...@...> writes:
>
> > test {
> > afterSuite { suite, result ->
> > result.exception?.printStackTrace()
> > }
> > }
>
> Thanks for your reply! The afterSuite block revealed the failure was an
> exception in my test code. I'll leave the block in until a release which
> includes the missing stack trace fix.
I discovered that the above block results in a build error [1] when the tests
succeed (i.e., when there is no exception in the result). It seems like this
could be another bug.
- Ben
1:
Failed to dispatch message
org.gradle.messaging.dispatch.methodinvocat...@1c71474e.
org.gradle.messaging.dispatch.DispatchException: Failed to dispatch message
org.gradle.messaging.dispatch.methodinvocat...@1c71474e.
at
org.gradle.messaging.dispatch.ExceptionTrackingDispatch.dispatch(ExceptionTracki
ngDispatch.java:34)
at
org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:
194)
at
org.gradle.messaging.dispatch.AsyncDispatch.access$200(AsyncDispatch.java:34)
at
org.gradle.messaging.dispatch.AsyncDispatch$2.run(AsyncDispatch.java:84)
at
org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.r
un(DefaultExecutorFactory.java:63)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:8
86)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.gradle.listener.ListenerNotificationException: Failed to notify
test listener.
at
org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:
87)
at
org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:
30)
at
org.gradle.messaging.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.
invoke(ProxyDispatchAdapter.java:75)
at $Proxy23.afterSuite(Unknown Source)
at
org.gradle.api.internal.tasks.testing.results.TestListenerAdapter.completed(Test
ListenerAdapter.java:46)
at
org.gradle.api.internal.tasks.testing.results.StateTrackingTestResultProcessor.c
ompleted(StateTrackingTestResultProcessor.java:51)
at
org.gradle.api.internal.tasks.testing.results.AttachParentTestResultProcessor.co
mpleted(AttachParentTestResultProcessor.java:52)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.jav
a:32)
at
org.gradle.messaging.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.jav
a:23)
at
org.gradle.messaging.dispatch.ExceptionTrackingDispatch.dispatch(ExceptionTracki
ngDispatch.java:32)
... 7 common frames omitted
Caused by: java.lang.IllegalStateException: No exception to return
at
org.gradle.api.internal.tasks.testing.results.DefaultTestResult.getException(Def
aultTestResult.java:48)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at
groovy.lang.MetaClassImpl$GetBeanMethodMetaProperty.getProperty(MetaClassImpl.ja
va:3460)
at
org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.getProperty(Ge
tEffectivePojoPropertySite.java:61)
at
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCa
llSite.java:237)
at
build_gradle_b0c2b817328d455f6f55c008b4c51bb9$_run_closure1_closure7_closure12.d
oCall(/localhome/aogail/Development/cap/bridge/build.gradle:32)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)
at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
at
org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaC
lass.java:273)
at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)
at groovy.lang.Closure.call(Closure.java:276)
at
org.gradle.messaging.dispatch.BroadcastDispatch$ClosureInvocationHandler.dispatc
h(BroadcastDispatch.java:109)
at
org.gradle.messaging.dispatch.BroadcastDispatch$ClosureInvocationHandler.dispatc
h(BroadcastDispatch.java:94)
at
org.gradle.messaging.dispatch.BroadcastDispatch.dispatch(BroadcastDispatch.java:
82)
... 20 common frames omitted
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email