No report in jenkins, if tests fail

2,057 views
Skip to first unread message

Ali Ostadsaraie

unread,
Jun 9, 2013, 11:25:47 PM6/9/13
to thucydid...@googlegroups.com
I still have problem with missing test report in jenkins, when tests fail. None of Thucydides and hrml_report shows the test result, if tests fail.

I put this in thucydides.properties but no luck:
testFailureIgnore=true

've added this to POM.xml but no luck:
<testFailureIgnore>true</testFailureIgnore>

This is not good that reports are not shown when tests fail.

Any help to resolve this is much appreciated.

m.dolinin

unread,
Jun 10, 2013, 6:08:55 AM6/10/13
to thucydid...@googlegroups.com
Hi Ali,

where you try to find report after tests failed?
If you use HTML Publisher Plugin, than it would appeared in build page, not on job page.
 
понедельник, 10 июня 2013 г., 6:25:47 UTC+3 пользователь aostad написал:

Guido Zockoll

unread,
Jun 11, 2013, 2:48:22 AM6/11/13
to thucydid...@googlegroups.com
i have the same problem. i use

mvn test thucydides:aggregate

to build the reports. When tests fail, the second goal on the command line is not executed. But when i call after the failure

mvn thucydides:aggregate

the report is generated as expected. I also tried to call mvn with "-fn" oder "-fae" with no luck. Perhaps when you bind the aggregate goal to a specific lifecycle phase, then "-fae" should do the job. But i haven't tried yet.

Regards,

Guido

Alex Okrushko

unread,
Jun 11, 2013, 9:34:07 AM6/11/13
to Guido Zockoll, thucydid...@googlegroups.com
I have no problems with clean integration-test thucydides:aggregate 
reports in jenkins are generated for any tests (failing, pending, passing, error...) 


--
You received this message because you are subscribed to the Google Groups "Thucydides Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to thucydides-use...@googlegroups.com.
To post to this group, send an email to thucydid...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Anastasia

unread,
Jun 11, 2013, 9:45:11 AM6/11/13
to thucydid...@googlegroups.com
I have the same issue with HTML Publisher plugin + Jenkins. Why is it so?
Are there any alternatives to HTML Publisher plugin ?

Alex Okrushko

unread,
Jun 11, 2013, 9:48:32 AM6/11/13
to Anastasia, thucydid...@googlegroups.com
I guess I have no problems because I'm not using any other plugins. I'm just providing management with the link to the workspace's index.html file. 


Ilyas Patel

unread,
Aug 10, 2015, 3:09:28 PM8/10/15
to Serenity BDD Users Group
Not sure if this has been sorted now but I put this into my command which helped: -Dmaven.test.skip=false

Dmitriy Grablyov

unread,
Aug 18, 2015, 5:28:34 AM8/18/15
to Serenity BDD Users Group
It depends on how you run your tests and which publisher you use on Jenkins.
With thucydides publisher plugin it will never show reports if build is marked as 'Failure' or 'Skip'. The only condition to see the report is having build 'Success' or 'Unstable'.
For this you need to run your tests under integration-test maven goal as it never fails build because of failed tests. Instead verify stops at the very first test failure and marks whole the build as failed
Reply all
Reply to author
Forward
0 new messages