logging - How to get more junit-failed-details in gradle log without running gradle in debug mode -


question:

is there way add details of failed junit4 tests gradle output witout making of gradle more verbose?

background:

i have java-se junit4 regression test handling ical content works fine on win-7-64 local machine fails on travis-ci buildserver using gradle.

when run

./gradlew assemble libicsj2se:test 

the gradle output travis-ci log contains this

* went wrong:  execution failed task ':libicsj2se:test'.  > there failing tests. see report at:  > file:///home/travis/build/k3b/calendaricsadapter/libicsj2se/build/reports/tests/index.html 

however have no access file because on build server cannot find out wich test failed , why.

when run gradle in debug mode

./gradlew -d assemble libicsj2se:test 

i see in log want:

07:06:56.713 [debug] [testeventlogger] de.k3b.calendar.dtoicregressonstests > shouldbesamefixthisevent started 07:06:56.713 [debug] [testeventlogger]  07:06:56.713 [debug] [testeventlogger] de.k3b.calendar.dtoicregressonstests > shouldbesamefixthisevent failed 07:06:56.714 [debug] [testeventlogger]     org.junit.comparisonfailure: expected:  <... tart:20000502t123456 [dtend:20000502t171234] summary:test title ...> was:<... tart:20000502t123456[z dtend:20000502t171234z] summary:test title ...> 07:06:56.717 [debug] [testeventlogger]         @ de.k3b.calendar.dtoicregressonstests.shouldbesamefixthisevent(dtoicregressonstests.java:482) 

however gradle debug output contains many more details unrelated junit-tests.

is there way add details of failed junit4 tests gradle output witout making of gradle more verbose?

please read documentation of testloggingcontainer see how configure logged when running tests.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -