Gradle asciidoctor target fails to execute
@jb Any idea why I get such failures?
$ ./gradlew clean asciidoctor
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=1024M; support was removed in 8.0
> Task :backend:test
fr.inra.urgi.rare.harvest.HarvesterTest > shouldHandleErrorWhenOpeningFile() FAILED
java.lang.AssertionError:
Expected size:<1> but was:<0> in:
<[]>
at fr.inra.urgi.rare.harvest.HarvesterTest.shouldHandleErrorWhenOpeningFile(HarvesterTest.java:126)
fr.inra.urgi.rare.harvest.HarvesterTest > shouldHarvest() FAILED
org.opentest4j.AssertionFailedError:
Expecting:
<1>
to be equal to:
<2>
but was not.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.assertj.core.error.ConstructorInvoker.newInstance(ConstructorInvoker.java:32)
at org.assertj.core.error.ShouldBeEqual.assertionFailedError(ShouldBeEqual.java:183)
at org.assertj.core.error.ShouldBeEqual.newAssertionError(ShouldBeEqual.java:125)
at org.assertj.core.internal.Failures.failure(Failures.java:99)
at org.assertj.core.internal.Comparables.assertEqual(Comparables.java:117)
at org.assertj.core.api.AbstractIntegerAssert.isEqualTo(AbstractIntegerAssert.java:68)
at fr.inra.urgi.rare.harvest.HarvesterTest.shouldHarvest(HarvesterTest.java:143)
fr.inra.urgi.rare.harvest.HarvesterTest > shouldListJsonFiles() FAILED
java.lang.AssertionError:
Actual and expected have the same elements but not in the same order, at index 0 actual element was:
<"test2.json">
whereas expected element was:
<"test1.json">
at fr.inra.urgi.rare.harvest.HarvesterTest.shouldListJsonFiles(HarvesterTest.java:91)
<===========--> 84% EXECUTING [19s]
<===========--> 84% EXECUTING [19s]d, 3 failed
<===========--> 84% EXECUTING [19s]d, 3 failedrare.dao.GeneticResourceDaoTest
2018-08-14 17:41:51.327 INFO 29845 --- [ Thread-56] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@74bc9da7: startup date [Tue Aug 14 17:41:50 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@61df7ccfao.GeneticResourceDaoTestexService] [CsDf0k5] [test-resource-physical-index] creating index, cause [api], templates [], shards [5]/[1], mappings []
2018-08-14 17:41:51.327 INFO 29845 --- [ Thread-48] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@62d6b601: startup date [Tue Aug 14 17:41:48 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@59436357
2018-08-14 17:41:51.328 INFO 29845 --- [ Thread-40] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@6d55b8d6: startup date [Tue Aug 14 17:41:47 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@10e71ea4
2018-08-14 17:41:51.329 INFO 29845 --- [ Thread-27] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@19cad39c: startup date [Tue Aug 14 17:41:41 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@2df2f5c3
2018-08-14 17:41:51.329 INFO 29845 --- [ Thread-36] o.s.c.support.GenericApplicationContext : Closing org.springframework.context.support.GenericApplicationContext@13aa8069: startup date [Tue Aug 14 17:41:46 CEST 2018]; root of context hierarchy
2018-08-14 17:41:51.328 INFO 29845 --- [ Thread-44] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@2005ea19: startup date [Tue Aug 14 17:41:48 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@3acead0d
2018-08-14 17:41:51.329 INFO 29845 --- [ Thread-60] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@4b0bb227: startup date [Tue Aug 14 17:41:50 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@11882dcf
2018-08-14 17:41:51.328 INFO 29845 --- [ Thread-52] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@1a164d3e: startup date [Tue Aug 14 17:41:49 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@6f28f711
2018-08-14 17:41:51.328 INFO 29845 --- [ Thread-19] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@3cbab175: startup date [Tue Aug 14 17:41:39 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@f236bfc
2018-08-14 17:41:51.329 INFO 29845 --- [ Thread-23] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@30f10fe: startup date [Tue Aug 14 17:41:40 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@fb9720c
2018-08-14 17:41:51.337 INFO 29845 --- [ Thread-11] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@4cfd6fdb: startup date [Tue Aug 14 17:41:29 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@a2853ba
2018-08-14 17:41:51.338 INFO 29845 --- [ Thread-35] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@3cb1c191: startup date [Tue Aug 14 17:41:42 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@1fe418e1
2018-08-14 17:41:51.327 INFO 29845 --- [ Thread-15] s.c.a.AnnotationConfigApplicationContext : Closing org.springframework.context.annotation.AnnotationConfigApplicationContext@71ea5404: startup date [Tue Aug 14 17:41:38 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@227cc787
2018-08-14 17:41:51.338 INFO 29845 --- [ Thread-31] o.s.w.c.s.GenericWebApplicationContext : Closing org.springframework.web.context.support.GenericWebApplicationContext@25baee6e: startup date [Tue Aug 14 17:41:41 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@8cdf469
86 tests completed, 3 failed
> Task :backend:test FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':backend:test'.
> There were failing tests. See the report at: file:///home/rflores/local/git/data-discovery/backend/build/reports/tests/test/index.html
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 28s
10 actionable tasks: 7 executed, 3 up-to-date
Edited by Raphaël Flores