./gradlew appserver fails with latest #393
Comments
bash$ git rev-parse HEAD |
Is it possible to make unit test failure a "soft fail" that allows the bootrun task still to execute? I think we'll always have false positive, I know we do in the browser, maybe best to let people use it anyway (the appserver task, that is -- Gaurav was able to launch the app via direct call to bootrun). |
We have customers and staff finding that they feel stuck when a unit test fails, so I think it would be nice to let it continue. I will go get you the report. You can't reproduce it? |
ofclan16-18-253:java-spring demouser$ ./gradlew test com.marklogic.samplestack.database.DatabaseQnADocumentSearchIT > testResponseExtracts FAILED com.marklogic.samplestack.integration.web.TagControllerIT > testSortFrequency FAILED 83 tests completed, 2 failed, 6 skipped FAILURE: Build failed with an exception.
BUILD FAILED Total time: 1 mins 17.558 secs |
Test Summary tests 2 failures 6 ignored 22.372s duration 97% successful
Log Generated by Gradle 2.1 at Dec 19, 2014 9:53:04 AM +++++++++++++++++++++++++++++++++++++++++++++++++ Log java.lang.AssertionError: values-response.distinct-value[_value=javascript]
Generated by Gradle 2.1 at Dec 19, 2014 9:53:04 AM |
This is the second test failure as in #367. |
OK this is in pull #396 . |
Verified this is working fine with ML 01/05 build and develop code . |
/home/builder/marklogic-samplestack
bash$ cd appserver/java-spring/
bash$ ./gradlew appserver
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy UP-TO-DATE
:buildSrc:processResources UP-TO-DATE
:buildSrc:classes UP-TO-DATE
:buildSrc:jar UP-TO-DATE
:buildSrc:assemble UP-TO-DATE
:buildSrc:compileTestJava UP-TO-DATE
:buildSrc:compileTestGroovy UP-TO-DATE
:buildSrc:processTestResources UP-TO-DATE
:buildSrc:testClasses UP-TO-DATE
:buildSrc:test UP-TO-DATE
:buildSrc:check UP-TO-DATE
:buildSrc:build UP-TO-DATE
:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/home/builder/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context
44f1/spring-context-4.1.0.RC2.jar(org/springframework/context/annotation/PropertySo
thod 'value()' in type 'Repeatable': class file for java.lang.annotation.Repeatable
2 warnings
:compileGroovy UP-TO-DATE
:processResources
:classes
:jar
:bootRepackage
:dbConfigureClean
:dbInit
Server already secured. Initialization skipped.
Server already secured. Initialization skipped
Creating users and roles...
Success: 201
:dbConfigure
Success: 204
No handler for file /home/builder/marklogic-samplestack/database/README.md
Putting database configuration database-properties.json
Success: 204
No handler for file /home/builder/marklogic-samplestack/database/LICENSE
Putting library extension tagged-with.xqy
Success: 201
Putting service extension related-tags.xqy
Success: 204
Putting transform single-question.sjs
Success: 204
Putting transform search-response.sjs
Success: 204
Putting search options hasVoted.json
Success: 201
Putting search options questions.json
Success: 201
Putting search options tags.json
Success: 201
Putting search options single-question.json
Success: 201
Putting search options contributors.json
Success: 201
:props UP-TO-DATE
:compileTestJava
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/home/builder/.gradle/caches/modules-2/files-2.1/org.springframework/spring-context
44f1/spring-context-4.1.0.RC2.jar(org/springframework/context/annotation/PropertySo
thod 'value()' in type 'Repeatable': class file for java.lang.annotation.Repeatable
2 warnings
:compileTestGroovy UP-TO-DATE
:processTestResources
:testClasses
:test
com.marklogic.samplestack.database.DatabaseQnADocumentFAILEDIT > testResponseExtrac
java.lang.ClassCastException at DatabaseQnADocumentSearchIT.java:181
19:49:07.285 [Thread-55] INFO o.s.c.s.GenericApplicationContext - Closing org.spri
ontext@54d7153a: startup date [Thu Dec 18 19:49:03 PST 2014]; root of context hiera
19:49:07.285 [Thread-6] INFO o.s.w.c.s.GenericWebApplicationContext - Closing org.
pplicationContext@746beca: startup date [Thu Dec 18 19:48:27 PST 2014]; root of con
19:49:07.285 [Thread-4] INFO o.s.w.c.s.GenericWebApplicationContext - Closing org.
pplicationContext@62e34b49: startup date [Thu Dec 18 19:48:22 PST 2014]; root of co
19:49:07.285 [Thread-5] INFO o.s.w.c.s.GenericWebApplicationContext - Closing org.
pplicationContext@5ce08277: startup date [Thu Dec 18 19:48:25 PST 2014]; root of co
19:49:07.285 [Thread-56] INFO o.s.c.s.GenericApplicationContext - Closing org.spri
ontext@689e4702: startup date [Thu Dec 18 19:49:05 PST 2014]; root of context hiera
19:49:07.289 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.290 [Thread-5] INFO o.s.j.e.a.AnnotationMBeanExporter - Unregistering JMX
19:49:07.297 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.298 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.302 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.305 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.307 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.310 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.311 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.315 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.316 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.320 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.321 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.325 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.325 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.329 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.330 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.333 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.334 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.338 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting /ques
19:49:07.340 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.342 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting com.m
d-f024-4478-a6dc-7e723a51b041.json
19:49:07.345 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.349 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting com.m
a-0663-45a5-8a08-f1c71320475f.json
19:49:07.350 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting /quest
19:49:07.353 [Thread-55] INFO c.m.client.impl.DocumentManagerImpl - Deleting com.m
c-dbf3-4008-b9d8-64f0491f1d4a.json
19:49:07.355 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting com.ma
-f024-4478-a6dc-7e723a51b041.json
19:49:07.362 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting com.ma
-0663-45a5-8a08-f1c71320475f.json
19:49:07.367 [Thread-6] INFO c.m.client.impl.DocumentManagerImpl - Deleting com.ma
-dbf3-4008-b9d8-64f0491f1d4a.json
19:49:07.372 [Thread-6] INFO o.s.s.ldap.server.ApacheDSContainer - Shutting down d
19:49:07.395 [Thread-6] INFO o.s.s.ldap.server.ApacheDSContainer - Deleting workin
061561477153
83 tests completed, 1 failed, 6 skipped
:test FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':test'.
Try:
Run with --stacktrace option to get the stack trace. R option to get more log outpu
BUILD FAILED
Total time: 1 mins 11.44 secs
The text was updated successfully, but these errors were encountered: