Does Geb support JUnit XML generation for test reports?

50 views
Skip to first unread message

Ben Frey

unread,
Oct 11, 2019, 11:52:18 AM10/11/19
to Geb User Mailing List
The subject pretty much says it all. Currently my team at work has a suite of functional tests using WebdriverIO, which has a junit reporter that creates JUnit XML reports, which we then upload to qTest. I've had success writing Geb tests, but I don't see any options to create a JUnit XML report.

Trinidad Esparza

unread,
Oct 11, 2019, 6:54:13 PM10/11/19
to Geb User Mailing List
On Friday, October 11, 2019 at 11:52:18 AM UTC-4, Ben Frey wrote:
> The subject pretty much says it all. Currently my team at work has a suite of functional tests using WebdriverIO, which has a junit reporter that creates JUnit XML reports, which we then upload to qTest. I've had success writing Geb tests, but I don't see any options to create a JUnit XML report.

https://gebish.org/manual/current/#testing-intro

Ben Frey

unread,
Oct 11, 2019, 7:36:17 PM10/11/19
to Geb User Mailing List
Yes, I figured it that when run from Gradle, JUnit XML reports are generated since I'm using Spock, which uses JUnit under the hood.

Trinidad Esparza

unread,
Oct 11, 2019, 7:49:54 PM10/11/19
to Geb User Mailing List
Ben, 

I notice you are a new user, I recommend you to read all the documentation and also you can fork the example projects to get started.


Hopefully, this helps!

Ben Frey

unread,
Oct 11, 2019, 8:57:37 PM10/11/19
to Geb User Mailing List
I am a new user, and I do read (the relevant parts of) the documentation before asking a question here. Unfortunately, I am not able to pull from external sites at work, so forking a project to play with isn't possible.

Alexander Kriegisch

unread,
Oct 12, 2019, 3:57:06 AM10/12/19
to geb-...@googlegroups.com
You clearly have not read the relevant parts of the documentation (BTW,
how do you decide what is relevant before knowing anything about a new
tool?) and I am not sure if you even tried to run tests via Gradle or
Maven before asking your question. Maybe you could just try first next
time and then start asking questions if you encounter any problems
instead of doing feature checks on a mailing list because you are too
lazy to try.

BTW, are you aware of the fact that you can download a ZIP archive of
any branch, tag or commit you navigate to from GitHub? No need to clone.
No need for lame excuses either, excuse my French. You are a developer,
behave like one.
--
Alexander Kriegisch
https://scrum-master.de


Ben Frey schrieb am 12.10.2019 02:57 (GMT +02:00):
>
> I am a new user, and I do read (the relevant parts of) the documentation
> before asking a question here. Unfortunately, I am not able to pull from
> external sites at work, so forking a project to play with isn't possible.
>
> On Friday, October 11, 2019 at 11:49:54 PM UTC, Trinidad Esparza wrote:
>>
>> Ben,
>>
>>
>> I notice you are a new user, I recommend you to read all the
>> documentation <https://gebish.org/manual/current/> and
>> also you can fork the example projects to get started.
>>
>>
>> https://github.com/geb/geb-
>> <https://github.com/geb/geb-example-maven> example-maven
>>
>>
>> https://github.com/geb/geb-
>> <https://github.com/geb/geb-example-gradle> example-gradle
>>
>> https://github.com/geb/geb-
>> <https://github.com/geb/geb-example-cucumber-jvm>
>> example-cucumber-jvm
>>
>>
>> Hopefully, this helps!
>>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to geb-user+u...@googlegroups.com
> <mailto:geb-user+u...@googlegroups.com> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/geb-user/5fd91833-7c58-4b59-b056-423a95c18e53%40googlegroups.com
> <https://groups.google.com/d/msgid/geb-user/5fd91833-7c58-4b59-b056-423a95c18e53%40googlegroups.com?utm_medium=email&utm_source=footer>
> .


Marc

unread,
Oct 12, 2019, 11:03:59 AM10/12/19
to Geb User Mailing List
I am a lurker here and get a ton of good information and helpful tips from this mailing list.  However, I regularly notice that Alexander is rude and often replies towards people in a condescending or hostile manner.  It isn't just here either as I see it on StackOverflow on occasion.  It's not a good look when I can read a reply and guess who it is based off the tone of the reply. 

Geb is an awesome framework that not many know about in my experience.  I try to share it with whomever I can as a test automation solution here in America.  While the documentation is very good and well worth a complete read-through, people shouldn't have to be afraid to come and ask questions only to get called out or receive rude replies.  Isn't the point of this mailing list a place to ask questions and receive updates regarding the framework?  So he might have asked a few basic questions that may or may not be in the documentation, so what?  Many of us here were QA first and automation developers second.  Not all of us are full-stack developers and we learn enough to get us by. 

Let's please be a welcome community and offer help to those who ask.  We want people to use this framework.  I want people to use this framework.  People aren't going to want to use it if they learn that asking questions might get them yelled at.

Marcin Erdmann

unread,
Oct 12, 2019, 1:30:14 PM10/12/19
to geb-...@googlegroups.com
Hi Marc,

Thanks for your email. I agree that Alexander has a tendency to be rude and to reply in condescending or hostile manner not only on this mailing list but also on Stack Overflow as you've noticed. One thing I'd like to make clear is that Alexander is by no way associated with the project and that I personally condemn responding to people's questions this way. As far as I remember, I have tried privately suggesting to Alexander in the past that his style is not appreciated and puts him in bad light but apparently my well intended advice has been ignored. In my opinion, if you believe that the person asking the question did not put enough effort before asking it then it's best to just ignore it instead of sending emails like this.

To answer Ben's original question (hopefully he's still following this thread even after how he's been treated) - Geb is a browser automation framework and not a testing framework therefore it's not its responsibility to generate JUnit XML reports. That responsibility lays with whatever tool (Gradle, Maven or Ant, just to name a couple) is used to run the tests (written using a test framework like JUnit, Spock or TestNG) which are using Geb to drive a browser.

Cheers,
Marcin

To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/046792c4-a5f9-452d-b5b5-a6b25186e4cb%40googlegroups.com.

Marc

unread,
Oct 12, 2019, 1:39:49 PM10/12/19
to Geb User Mailing List
Hi Marcin,

Thank you for the reply.  I have seen Alexander around here enough to wonder if he was associated with the project or not, so thank you for clearing that up.  It's a shame when someone not associated to the project can give that project a bad look when it is not at all any fault of people that do support the project.

I am a test automation developer that started as a QA.  I am not and don't intend to be a full stack developer but I've learned SO much from learning Geb/Groovy/Spock that I consider myself almost an expert in the framework.  I've been in Ben's place before.  Now I've brought this framework into 2 different companies I've worked for.  Thank you for all of the work you put in to support this project and thank you to all the people who provide helpful responses!  This is hands down the best framework I have used in the past 3 years.
To unsubscribe from this group and stop receiving emails from it, send an email to geb-...@googlegroups.com.

Alexander Kriegisch

unread,
Oct 12, 2019, 3:57:10 PM10/12/19
to geb-...@googlegroups.com
Hi all.

I never claimed to be associated with Geb or Spock. So if Marcin and
others believe that my direct tone of communication sheds a bad light
upon the project I like so much, I can only apologise and further
relieve everyone of my presence here by opting out of the mailing list.
I hope this makes life for all of you a bit easier and more fun.

It was my pleasure to try and answer questions on StackOverflow and
sometimes here. I helped whenever I could but also never tried to hide
my disappointment about IMO lazy people who want others to do all the
work for them by e.g.

-- asking questions easily answered by just trying. Often people spend
more time writing the question than it would have taken to just
try.

-- writing questions in a way nobody can answer in any opther way than
by wild speculation because they only contain unclear prose or
incoherent snippets of code which do not help to reproduice their
problems.

I want to make it very clear that I like to help others. I am not even a
professional developer, but if I could help I did. What I do not like is
not missing knowledge but a certain style of asking questions which
shows lack of effort. IMO this is extremely rude and disrespectful
towards the people you hope to get help from, thus my sometimes snappy
(rude) replies.

No, I don't want to be nice to lazy and disrespectful people. I choose
to treat them like I feel treated by them. I am fully aware of the fact
that many people have a problem with that way of "tit for tat", but this
is my communication style. If you look at my answers on SO - be it about
Geb, Spock or AspectJ - you will find that I go to great lengths in
order to provide comprehensive answers. I put a lot of time and effort
into them. Someone who genuinely does not know and can show me code or
otherwise explain what his problem is after trying to find a solution by
himself first, earns my respect and I will try to help. What I am not,
though, is the "good uncle" who is apologetic or even just ignorant of
questions which I think do not belong onto a mailing list or a forum
like SO.

Whoever wants to have the last word now, may have it.

Best regards
--
Alexander Kriegisch
https://scrum-master.de


>> <mailto:geb-user+u...@googlegroups.com> .
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/geb-user/046792c4-a5f9-452d-b5b5-a6b25186e4cb%40googlegroups.com
>> <https://groups.google.com/d/msgid/geb-user/046792c4-a5f9-452d-b5b5-a6b25186e4cb%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to geb-user+u...@googlegroups.com
> <mailto:geb-user+u...@googlegroups.com> .
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/geb-user/CA%2B52dQSdWVSx9FUYzKVFqXOytV0Jiq%2BmDOw%2BDf3hDtemuDfFBg%40mail.gmail.com
> <https://groups.google.com/d/msgid/geb-user/CA%2B52dQSdWVSx9FUYzKVFqXOytV0Jiq%2BmDOw%2BDf3hDtemuDfFBg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .


Marc

unread,
Oct 12, 2019, 4:32:44 PM10/12/19
to Geb User Mailing List
Honestly this is just a childish response in my opinion.  You are running away with your tail tucked because nobody likes the way you treat other people.  Instead of taking a look at yourself and saying "Perhaps there is a problem that lies with me" you instead say "No, it's the others who are wrong!"  We can all be a helpful part of this community.  If you don't like the way someone asks a question, then just ignore it.  There is nothing requiring your response. 

If you choose to leave because "this is just the way I am and I am not changing for anybody!" then I think this community will be better.

If you choose to stay and help the community by providing helpful answers in a more mature manner then this community will also be better.

There is nothing wrong with treating people nicely, regardless of how you perceive them.
>> https://groups.google.com/d/msgid/geb-user/046792c4-a5f9-452d-b5b5-a6b25186e4cb%40googlegroups.com
>> <https://groups.google.com/d/msgid/geb-user/046792c4-a5f9-452d-b5b5-a6b25186e4cb%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "Geb User Mailing List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to geb-...@googlegroups.com
> <mailto:geb-...@googlegroups.com> .
> To view this discussion on the web visit

Ben Frey

unread,
Oct 12, 2019, 8:02:05 PM10/12/19
to Geb User Mailing List
Marc and Marcin, thanks for reassuring me that I hadn't lost my mind! My learning style is to read enough of the documentation to get started, then refer back to it when I get stuck. If I can't find the answer there, then I try to find someone to ask. In this case, I knew that I was running with Spock (which I knew used JUnit under the hood), but I had no idea that Gradle automatically generates XML reports. I feel that the matter is somewhat confused because the documentation does discuss reporting, so I assumed that it was self-contained and I was missing some configuration aspect. I realize after re-reading the relevant section (and the answers here) that Geb controls only the browser, so only reports the state of that, not of any tests that used Geb. Thanks for the clarifications, folks.

Marcin Erdmann

unread,
Oct 14, 2019, 4:22:55 PM10/14/19
to geb-...@googlegroups.com
Alexander,

While I completely agree with you that people who do not put any effort into investigating their problems before asking question are disrespectful I do not agree that being border line abusive towards them benefits anybody - they will ignore such messages anyway because if they don't care about doing research they won't care what you reply with, you will get frustrated and others reading it might get offended or will at least feel uneasy about it. I think that the best way is to ignore questions which show that no effort have been put into them.

Nobody is expecting you to answer every question especially low quality ones. You are doing it in your free time and not getting anything in return. I've indeed seen in the past that when somebody asks a quality question and helps you to help them you really go to great lenghts to provide answers. And that's great, keep it up.

Cheers,
Marcin

To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/20191012195707.AEE1744C355B%40dd39516.kasserver.com.

Marcin Erdmann

unread,
Oct 14, 2019, 4:28:21 PM10/14/19
to geb-...@googlegroups.com
I'm glad to know that it's all clear now and we were able to help, Ben.

Marcin

To unsubscribe from this group and stop receiving emails from it, send an email to geb-user+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/geb-user/a656fc93-c782-43ea-8b0d-db52d1c65d69%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages