Skip to content

Instantly share code, notes, and snippets.

@headius
Created April 11, 2010 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save headius/362908 to your computer and use it in GitHub Desktop.
Save headius/362908 to your computer and use it in GitHub Desktop.
~/projects/nokogiri ➔ jruby -S rake test
(in /Users/headius/projects/nokogiri)
warning: couldn't activate the debugging plugin, skipping
/Users/headius/projects/jruby/bin/jruby -w -Ilib:ext:bin:test -e 'require "rubygems"; require "test/unit"; require "test/test_convert_xpath.rb"; require "test/test_css_cache.rb"; require "test/test_encoding_handler.rb"; require "test/test_jruby.rb"; require "test/test_memory_leak.rb"; require "test/test_nokogiri.rb"; require "test/test_reader.rb"; require "test/test_soap4r_sax.rb"; require "test/test_xslt_transforms.rb"; require "test/css/test_nthiness.rb"; require "test/css/test_parser.rb"; require "test/css/test_tokenizer.rb"; require "test/css/test_xpath_visitor.rb"; require "test/ffi/test_document.rb"; require "test/html/test_builder.rb"; require "test/html/test_document.rb"; require "test/html/test_document_encoding.rb"; require "test/html/test_document_fragment.rb"; require "test/html/test_element_description.rb"; require "test/html/test_named_characters.rb"; require "test/html/test_node.rb"; require "test/html/test_node_encoding.rb"; require "test/html/sax/test_parser.rb"; require "test/html/sax/test_parser_context.rb"; require "test/xml/test_attr.rb"; require "test/xml/test_attribute_decl.rb"; require "test/xml/test_builder.rb"; require "test/xml/test_cdata.rb"; require "test/xml/test_comment.rb"; require "test/xml/test_document.rb"; require "test/xml/test_document_encoding.rb"; require "test/xml/test_document_fragment.rb"; require "test/xml/test_dtd.rb"; require "test/xml/test_dtd_encoding.rb"; require "test/xml/test_element_content.rb"; require "test/xml/test_element_decl.rb"; require "test/xml/test_entity_decl.rb"; require "test/xml/test_entity_reference.rb"; require "test/xml/test_namespace.rb"; require "test/xml/test_node.rb"; require "test/xml/test_node_attributes.rb"; require "test/xml/test_node_encoding.rb"; require "test/xml/test_node_reparenting.rb"; require "test/xml/test_node_set.rb"; require "test/xml/test_parse_options.rb"; require "test/xml/test_processing_instruction.rb"; require "test/xml/test_reader_encoding.rb"; require "test/xml/test_relax_ng.rb"; require "test/xml/test_schema.rb"; require "test/xml/test_syntax_error.rb"; require "test/xml/test_text.rb"; require "test/xml/test_unparented_node.rb"; require "test/xml/test_xpath.rb"; require "test/xml/node/test_save_options.rb"; require "test/xml/node/test_subclass.rb"; require "test/xml/sax/test_parser.rb"; require "test/xml/sax/test_parser_context.rb"; require "test/xml/sax/test_push_parser.rb"'
/Users/headius/projects/nokogiri/test/helper.rb:13: pure java version
#{FAILURES} failures, #{ERRORS} errors
Loaded suite -e
Started
..........................................................................................................................................................E..............................................................E.E.EE.E...F......EEEE.......E.F.....EE.....F...................................................E............EFE...........F.F................................E.......EE.............................................................................................................................................................F........................................................................................................................................................................................................................................................F...
Finished in 11.369 seconds.
1) Error:
test_to_xhtml(Nokogiri::HTML::TestDocumentFragment):
NoMethodError: undefined method `[]' for nil:NilClass
./test/html/test_document_fragment.rb:127:in `test_to_xhtml'
2) Error:
test_subclass_initialize_Nokogiri_XML_Attr(Nokogiri::XML::Node::TestSubclass):
ArgumentError: wrong # of arguments(3 for 2)
./test/xml/node/test_subclass.rb:49:in `test_subclass_initialize_Nokogiri_XML_Attr'
3) Error:
test_subclass_initialize_Nokogiri_XML_Comment(Nokogiri::XML::Node::TestSubclass):
ArgumentError: wrong # of arguments(3 for 2)
./test/xml/node/test_subclass.rb:49:in `test_subclass_initialize_Nokogiri_XML_Comment'
4) Error:
test_subclass_initialize_Nokogiri_XML_EntityReference(Nokogiri::XML::Node::TestSubclass):
ArgumentError: wrong # of arguments(3 for 2)
./test/xml/node/test_subclass.rb:49:in `test_subclass_initialize_Nokogiri_XML_EntityReference'
5) Error:
test_subclass_initialize_Nokogiri_XML_Node(Nokogiri::XML::Node::TestSubclass):
ArgumentError: wrong # of arguments(3 for 2)
./test/xml/node/test_subclass.rb:49:in `test_subclass_initialize_Nokogiri_XML_Node'
6) Error:
test_subclass_initialize_Nokogiri_XML_Text(Nokogiri::XML::Node::TestSubclass):
ArgumentError: wrong # of arguments(3 for 2)
./test/xml/node/test_subclass.rb:49:in `test_subclass_initialize_Nokogiri_XML_Text'
7) Failure:
test_ctag(Nokogiri::XML::SAX::TestParser) [./test/xml/sax/test_parser.rb:256]:
<[" This is a comment "]> expected but was
<[" This is a ", "comment "]>.
8) Error:
test_parse_file(Nokogiri::XML::SAX::TestParser):
IOError: /Users/headius/projects/nokogiri/staff.dtd (No such file or directory)
/Users/headius/projects/nokogiri/lib/nokogiri/xml/sax/parser.rb:104:in `parse_file'
./test/xml/sax/test_parser.rb:231:in `test_parse_file'
9) Error:
test_parse_io(Nokogiri::XML::SAX::TestParser):
IOError: /Users/headius/projects/nokogiri/staff.dtd (No such file or directory)
/Users/headius/projects/nokogiri/lib/nokogiri/xml/sax/parser.rb:93:in `parse_io'
./test/xml/sax/test_parser.rb:189:in `test_parse_io'
./test/xml/sax/test_parser.rb:188:in `open'
./test/xml/sax/test_parser.rb:188:in `test_parse_io'
10) Error:
test_parse_with_io_argument(Nokogiri::XML::SAX::TestParser):
IOError: /Users/headius/projects/nokogiri/staff.dtd (No such file or directory)
/Users/headius/projects/nokogiri/lib/nokogiri/xml/sax/parser.rb:93:in `parse_io'
/Users/headius/projects/nokogiri/lib/nokogiri/xml/sax/parser.rb:81:in `parse'
./test/xml/sax/test_parser.rb:182:in `test_parse_with_io_argument'
./test/xml/sax/test_parser.rb:181:in `open'
./test/xml/sax/test_parser.rb:181:in `test_parse_with_io_argument'
11) Error:
test_parse_with_memory_argument(Nokogiri::XML::SAX::TestParser):
IOError: /Users/headius/projects/nokogiri/staff.dtd (No such file or directory)
/Users/headius/projects/nokogiri/lib/nokogiri/xml/sax/parser.rb:110:in `parse_memory'
/Users/headius/projects/nokogiri/lib/nokogiri/xml/sax/parser.rb:83:in `parse'
./test/xml/sax/test_parser.rb:176:in `test_parse_with_memory_argument'
12) Error:
test_start_is_called_without_namespace(Nokogiri::XML::SAX::TestParser):
NoMethodError: undefined method `map' for nil:NilClass
./test/xml/sax/test_parser.rb:149:in `test_start_is_called_without_namespace'
13) Failure:
test_from_file(Nokogiri::XML::SAX::TestParserContext) [./test/xml/sax/test_parser_context.rb:47]:
Exception raised:
Class: <IOError>
Message: <"/Users/headius/projects/nokogiri/staff.dtd (No such file or directory)">
---Backtrace---
./test/xml/sax/test_parser_context.rb:50:in `test_from_file'
./test/xml/sax/test_parser_context.rb:47:in `test_from_file'
---------------
14) Error:
test_replace_entities(Nokogiri::XML::SAX::TestParserContext):
RuntimeError: Not replacing entities is unsupported
./test/xml/sax/test_parser_context.rb:11:in `test_replace_entities'
15) Error:
test_broken_encoding(Nokogiri::XML::SAX::TestPushParser):
NoMethodError: undefined method `size' for nil:NilClass
./test/xml/sax/test_push_parser.rb:128:in `test_broken_encoding'
16) Failure:
test_exception(Nokogiri::XML::SAX::TestPushParser) [./test/xml/sax/test_push_parser.rb:13]:
<Nokogiri::XML::SyntaxError> exception expected but none was thrown.
17) Error:
test_validate(Nokogiri::XML::TestDTD):
NoMethodError: undefined method `validate' for #<Nokogiri::XML::DTD:0x134f39d>
./test/xml/test_dtd.rb:56:in `test_validate'
18) Error:
test_create_external_subset(Nokogiri::XML::TestDocument):
NotImplementedError: not implemented
./test/xml/test_document.rb:100:in `test_create_external_subset'
19) Failure:
test_create_external_subset_fails_with_existing_subset(Nokogiri::XML::TestDocument) [./test/xml/test_document.rb:92]:
<nil> is not true.
20) Error:
test_create_internal_subset(Nokogiri::XML::TestDocument):
NotImplementedError: not implemented
./test/xml/test_document.rb:68:in `test_create_internal_subset'
21) Failure:
test_empty_node_converted_to_html_is_not_self_closing(Nokogiri::XML::TestDocument) [./test/xml/test_document.rb:143]:
<"<a></a>"> expected but was
<"<a>">.
22) Failure:
test_external_subset(Nokogiri::XML::TestDocument) [./test/xml/test_document.rb:82]:
<nil> is not true.
23) Error:
test_validate(Nokogiri::XML::TestDocument):
NoMethodError: undefined method `validate' for #<Nokogiri::XML::DTD:0x1dcd5df>
/Users/headius/projects/nokogiri/lib/nokogiri/xml/document.rb:102:in `validate'
./test/xml/test_document.rb:186:in `test_validate'
24) Error:
test_fragment_invalid_namespace_is_silently_ignored(Nokogiri::XML::TestDocumentFragment):
NoMethodError: undefined method `namespace' for nil:NilClass
./test/xml/test_document_fragment.rb:140:in `test_fragment_invalid_namespace_is_silently_ignored'
25) Error:
test_fragment_namespace_resolves_against_document_root(Nokogiri::XML::TestDocumentFragment):
NoMethodError: undefined method `namespace' for nil:NilClass
./test/xml/test_document_fragment.rb:129:in `test_fragment_namespace_resolves_against_document_root'
26) Failure:
test_replace_with_default_namespaces(Nokogiri::XML::TestNodeReparenting) [./test/xml/test_node_reparenting.rb:163]:
<#(Element:0xbb4 {
name = "orange",
namespace = #(Namespace:0xbb8 { href = "http://fruits.org" })
})> expected but was
<nil>.
27) Failure:
test_transform(TestXsltTransforms) [./test/test_xslt_transforms.rb:38]:
<"<html>\n <body>\n <h1>\n <table border=\"1\">\n <tr bgcolor=\"#9acd32\">\n <th align=\"left\">Employee ID</th><th align=\"left\">Name</th><th align=\"left\">Position</th><th align=\"left\">Salary</th>\n </tr>\n <tr>\n <td>EMP0001</td><td>Margaret Martin</td><td>Accountant</td><td>56,000</td>\n </tr>\n <tr>\n <td>EMP0002</td><td>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2;\nThis is an adjacent CDATASection with a reference to a tab &tab;</td><td>Secretary</td><td>35,000</td>\n </tr>\n <tr>\n <td>EMP0003</td><td>Roger\n Jones</td><td>Department Manager</td><td>100,000</td>\n </tr>\n <tr>\n <td>EMP0004</td><td>Jeny Oconnor</td><td>Personnel Director</td><td>95,000</td>\n </tr>\n <tr>\n <td>EMP0005</td><td>Robert Myers</td><td>Computer Specialist</td><td>90,000</td>\n </tr>\n </table>\n </body>\n</html>\n\n"> expected to be =~
</<h1><\/h1>/>.
785 tests, 1657 assertions, 8 failures, 19 errors
rake aborted!
Command failed with status (1): [/Users/headius/projects/jruby/bin/jruby -w...]
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment