Michael B. Klein
2011-Mar-23 18:51 UTC
[rspec-users] [module announcement] Equivalency testing for XML
Hello all, I recently released a gem that assists in testing XML nodes for equivalency, and thought it might be of interest to the RSpec community. It can normalize whitespace (or not), ignore element order (or not), compare namespaces based on URI (not prefix), and more. Plus -- and possibly best of all -- it has baked-in RSpec (1.2.4+, 2.x) integration via custom matchers. It''s similar in aim to XmlUnit for Java[1], but with a far narrower scope. Documentation: http://rdoc.info/github/mbklein/equivalent-xml/master/frames Source:?http://github.com/mbklein/equivalent-xml RubyGems: http://rubygems.org/gems/equivalent-xml Or, of course, simply gem install equivalent-xml I welcome any feedback, suggestions, patches, pull requests, additional test cases, etc. Thanks! Michael B. Klein Digitization Workflow Engineer Stanford University Libraries & Academic Information Services [1] http://xmlunit.sourceforge.net/
Michael B. Klein
2011-Mar-24 16:59 UTC
[rspec-users] [module announcement] Equivalency testing for XML
Hello all, I recently released a gem that assists in testing XML nodes for equivalency, and thought it might be of interest to the RSpec community. It can normalize whitespace (or not), ignore element order (or not), compare namespaces based on URI (not prefix), and more. Plus -- and possibly best of all -- it has baked-in RSpec (1.2.4+, 2.x) integration via custom matchers. It''s similar in aim to XmlUnit for Java[1], but with a far narrower scope. Documentation: http://rdoc.info/github/mbklein/equivalent-xml/master/frames Source: http://github.com/mbklein/equivalent-xml RubyGems: http://rubygems.org/gems/equivalent-xml Or, of course, simply gem install equivalent-xml I welcome any feedback, suggestions, patches, pull requests, additional test cases, etc. Thanks! Michael [1] http://xmlunit.sourceforge.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110324/4db4d964/attachment.html>
James Martin
2011-Mar-25 04:58 UTC
[rspec-users] [module announcement] Equivalency testing for XML
On Fri, Mar 25, 2011 at 3:59 AM, Michael B. Klein <mbklein at gmail.com> wrote:> Hello all, > > I recently released a gem that assists in testing XML nodes > for equivalency, and thought it might be of interest to the RSpec community. > It can normalize whitespace (or not), ignore element order (or not), compare > namespaces based on URI (not prefix), and more. Plus -- and possibly best of > all -- it has baked-in RSpec (1.2.4+, 2.x) integration via custom matchers. > > It''s similar in aim to XmlUnit for Java[1], but with a far narrower scope. > > Documentation: > http://rdoc.info/github/mbklein/equivalent-xml/master/frames > Source: http://github.com/mbklein/equivalent-xml > RubyGems: http://rubygems.org/gems/equivalent-xml > > Or, of course, simply gem install equivalent-xml > > I welcome any feedback, suggestions, patches, pull requests, additional > test cases, etc. > > Thanks! > > Michael > > [1] http://xmlunit.sourceforge.net/ > > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >Nice! Shame it wasn''t available a few months ago when I rolled my own! :-) Will take a look through the specs and my own version and if there''s any gaps I''ll send you a pull request. Cheers, James. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20110325/d3007b8a/attachment-0001.html>