Code Monkey home page Code Monkey logo

Comments (21)

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
I would really like to get the xml format support into shunit2. What is needed 
to get
this integrated into shunit? Make it optional? Allow to specify the output 
style?

Original comment by [email protected] on 8 Jan 2010 at 8:24

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Currently the proposed patch is a partial rewrite of the existing code. It was 
done
for a personal homework. So you have to understand that it is is not fully 
tested,
and is rather intrusive: xml is the default format. Right now, I do not have 
enough
time to update this code, but there should not be too much work to make the xml
output optional. Nonetheless, I am very interesting by a,y feedback. We keep in
touch! Thanks for your comment ;-)

Original comment by [email protected] on 8 Jan 2010 at 8:43

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Hi Frederic, thankyou for posting this patch. This is really useful.

Original comment by [email protected] on 27 Aug 2010 at 12:37

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024

Original comment by [email protected] on 15 Mar 2011 at 12:30

  • Added labels: Priority-Low, Type-Enhancement
  • Removed labels: Priority-Medium, Type-Defect

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
the junit-xml patch works great! Now I'm merging Kate's new changes in to the 
patched r294.

Original comment by [email protected] on 24 May 2011 at 8:37

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Ok, I've got a patch that updates 2.1.6 to include Frédéric Moulin's 
JUnit-xml patch.  Unfortunately it is not too clean - it reduces shunit2 to 
only work with bash, and I've only been able to test it on Ubuntu and Redhat 
linux flavours.  With some more cleanup it can be made available.  Contact me 
for the dirty patch - however, I endavour to come up with a proper patch that 
allows for both the junit-xml output and the normal shunit2 output.

In fact anyone else is in my position, I'm hooking the tests up to Atlassian 
Bamboo's test reporting.  So if that happens to be what you're doing, then I 
suspect my dirty patch might be just the ticket for you!

Regards,
-Ben

Original comment by [email protected] on 3 Jun 2011 at 5:54

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Ben - Would like to get your patch for JUnit XML output in 2.1.6.  Please post, 
if possible.  Much thanks!

Original comment by [email protected] on 28 Sep 2011 at 8:58

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Same here ! I would be really interested by the patched version with XML output.

Original comment by [email protected] on 24 Oct 2011 at 1:35

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
This hasn't been merged yet?

Original comment by [email protected] on 31 Jan 2013 at 3:28

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Attached! There was quite a bit of tweaky stuff,
but in the end I did manage to merge 2.1.6 with the earlier work that
another fellow did to get junit-xml with an earlier version of shunt.
The patch is a bit messy, but it works great for us. We are now using
this approach with quite a few of our products.

Here's my diff command:

diff -u -r shunit2-2.1.6-orig shunit2-2.1.6 > shunit-2.1.6-xml.patch

Enjoy!

Original comment by [email protected] on 31 Jan 2013 at 8:38

Attachments:

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Bummer! Only bash?! That not good :\

Original comment by [email protected] on 1 Feb 2013 at 9:14

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
I'm sure it could be made to work without bash, but that was not in my 
requirements so I took the shortcut and just used bash.

Original comment by [email protected] on 1 Feb 2013 at 6:42

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Here's a, so far working, non bash dependent, patched, version of shunit2:
    https://github.com/s0undt3ch/shunit2

The regular output was kept, but can be omitted using SHUNIT_STDOUT.
There's an option to include the environment or not using SHUNIT_INCLUDE_ENV.

Original comment by [email protected] on 3 Feb 2013 at 11:53

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Could we get this patch included in the official shunit2 along with a new 
release ? 
Or is this project not supported anymore ? 

Thank you

Original comment by [email protected] on 29 Apr 2013 at 3:13

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
[deleted comment]

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
It seems that s0undt3ch is no longer supporting the XML patches

https://github.com/s0undt3ch/shunit2/pull/1

I have forked and fixed a couple of issues.

https://github.com/jeremycarroll/shunit2

My interest in the xml output is for integration with jenkins, and our 
continuous test server.

Original comment by [email protected] on 29 Apr 2013 at 8:49

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Thanks. This is a good thing, I've been needing this for a while. We've had to 
kludge JUnit XML output via a Perl script that runs with the end-of-suite hook. 
Our goal is also to integrate with Jenkins.

Original comment by [email protected] on 29 Apr 2013 at 9:56

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Thank you very much !
My question about support was more related with the project in itself. Ideally 
the fork should be merged back with the original shunit2 and released. 

Thank you again, I will use it with Jenkins. 
Barth

Original comment by [email protected] on 30 Apr 2013 at 6:14

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Hi Jeremy, 

I have also started to correct the XML patches to make it work with jenkins. I 
haven't had time to check your version, but you might want to check my patches, 
some of them might be useful: 
https://github.com/fekete-robert/shunit2/commits/jenkins

(I am not a programmer, so they might be ugly as hell.)

Regards, 

Robert

Original comment by [email protected] on 30 Apr 2013 at 7:34

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Hi, 

I think that we should change the line
    cat << EOF >> "${SHUNIT_OUTPUTDIR}/TEST-${__shunit_suite_name}.xml"
into
    cat << EOF > "${SHUNIT_OUTPUTDIR}/TEST-${__shunit_suite_name}.xml"

Appending only results in an invalid xml file. 

Original comment by [email protected] on 30 Apr 2013 at 11:54

from shunit2.

GoogleCodeExporter avatar GoogleCodeExporter commented on September 24, 2024
Hi, 

in the patch the functions oneTimeTearDown and oneTimeSetUp must not be piped. 
That is important in order allow the called code to modify variables such as 
the suite name.

Cheers,
Barth

Original comment by [email protected] on 21 May 2013 at 12:15

from shunit2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.