List Info

Thread: solrb testing?




solrb testing?
country flaguser name
United States
2007-02-12 08:11:59
for those solrbians out there, are all well with these:

	rake # runs just the unit tests

	rake test # runs unit and functional tests

	rake test:coverage # requires rcov gem, shows test
coverage


i've heard one person (Ed) report some issues, but that's
all (other  
than those 3 Windows users out there who have issues with
the  
functional tests!).

	erik


Re: solrb testing?
country flaguser name
United States
2007-02-12 09:18:33
On Feb 12, 2007, at 9:11 AM, Erik Hatcher wrote:
> i've heard one person (Ed) report some issues, but
that's all  
> (other than those 3 Windows users out there who have
issues with  
> the functional tests!).

Mysteriously, I get two failures for the unit tests. I
haven't had  
time to dig in and see why it's only affecting me.

frizz:~/Projects/solr/client/ruby/solrb edsu$ ruby -v
ruby 1.8.4 (2005-12-24) [i686-darwin8.6.1]

frizz:~/Projects/solr/client/ruby/solrb edsu$ rake
(in /Users/edsu/Projects/solr/client/ruby/solrb)
/usr/local/bin/ruby -Ilib -r solr -r test/unit -Itest/unit
"/usr/ 
local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_l
oader.rb"  
"test/unit/add_document_test.rb"
"test/unit/commit_test.rb" "test/ 
unit/connection_test.rb"
"test/unit/delete_test.rb" "test/unit/ 
dismax_request_test.rb"
"test/unit/document_test.rb" "test/unit/ 
field_test.rb" "test/unit/ping_test.rb"
"test/unit/request_test.rb"  
"test/unit/response_test.rb"
"test/unit/standard_request_test.rb"  
"test/unit/standard_response_test.rb"
Loaded suite
/usr/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/ 
rake_test_loader
Started
................F...........F..........................
Finished in 0.032127 seconds.

   1) Failure:
test_delete_by_i18n_query_request(DeleteTest) [./test/unit/

delete_test.rb:53]:
<"<delete>n 
<query>&#xEB;&#xE4;&#xEF;&#xF6;&#x
FC;</query>n</ 
delete>"> expected to be =~
</<delete>[s]*<query>30325330324430325
7303266303274</ 
query>[s]*</delete>/m>.

   2) Failure:
test_i18n_xml(FieldTest) [./test/unit/field_test.rb:39]:
<"<field
name="i18nstring">&#xC4;&#xEA;&#x
E2;&#xEE;&#xF4;&#xFB;  
&#xD6;&#xEB;&#xE4;&#xEF;&#xF6;&#xFC;
</field>"> expected to be =~
</<field
name=["']i18nstring["']>30320430325230324
2303256303 
264303273
303226303253303244303257303266303274</ 
field>/m>.

55 tests, 122 assertions, 2 failures, 0 errors
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -Ilib
-r solr -r  
test/...]

>
> 	erik
>


Re: solrb testing?
user name
2007-02-13 01:13:27
On 2/12/07, Edward Summers <ehspobox.com> wrote:
> Mysteriously, I get two failures for the unit tests. I
haven't had
> time to dig in and see why it's only affecting me.
> <"<delete>n 
<query>&#xEB;&#xE4;&#xEF;&#xF6;&#x
FC;</query>n</
> delete>"> expected to be =~
>
</<delete>[s]*<query>30325330324430325
7303266303274</
> query>[s]*</delete>/m>.

Hmm. This looks like a problem with the test. Let me guess
-- you
don't have libxml-ruby installed?

Looks like REXML encodes the characters as entities rather
than leave
them as characters.

Anyone got a good idea of how to normalize the tests here?

-- 
Coda Hale
http://blog.codahale.com


Re: solrb testing?
country flaguser name
United States
2007-02-13 12:11:03
On Feb 13, 2007, at 2:13 AM, Coda Hale wrote:

> On 2/12/07, Edward Summers <ehspobox.com> wrote:
>> Mysteriously, I get two failures for the unit
tests. I haven't had
>> time to dig in and see why it's only affecting me.
>> <"<delete>n 
<query>&#xEB;&#xE4;&#xEF;&#xF6;&#x
FC;</query>n</
>> delete>"> expected to be =~
>>
</<delete>[s]*<query>30325330324430325
7303266303274</
>> query>[s]*</delete>/m>.
>
> Hmm. This looks like a problem with the test. Let me
guess -- you
> don't have libxml-ruby installed?
>
> Looks like REXML encodes the characters as entities
rather than leave
> them as characters.
>
> Anyone got a good idea of how to normalize the tests
here?

Strangely I do have libxml-ruby-0.3.8.4 installed:

frizz:~/Projects/solr/client/ruby/solrb edsu$ xml2-config
--version
2.6.23
frizz:~/Projects/solr/client/ruby/solrb edsu$ irb
irb(main):001:0> require 'xml/libxml'
irb(main):002:0>

//Ed

Re: solrb testing?
country flaguser name
United States
2007-02-16 20:40:58
Since I can't tackle this at the moment, I've queued it up
in JIRA:

	<ht
tps://issues.apache.org/jira/browse/SOLR-163>

I've not seen any local test failures like this myself, so
this is an  
odd one.

	Erik


On Feb 13, 2007, at 1:11 PM, Edward Summers wrote:

>
> On Feb 13, 2007, at 2:13 AM, Coda Hale wrote:
>
>> On 2/12/07, Edward Summers <ehspobox.com> wrote:
>>> Mysteriously, I get two failures for the unit
tests. I haven't had
>>> time to dig in and see why it's only affecting
me.
>>> <"<delete>n 
<query>&#xEB;&#xE4;&#xEF;&#xF6;&#x
FC;</query>n</
>>> delete>"> expected to be =~
>>>
</<delete>[s]*<query>30325330324430325
7303266303274</
>>> query>[s]*</delete>/m>.
>>
>> Hmm. This looks like a problem with the test. Let
me guess -- you
>> don't have libxml-ruby installed?
>>
>> Looks like REXML encodes the characters as entities
rather than leave
>> them as characters.
>>
>> Anyone got a good idea of how to normalize the
tests here?
>
> Strangely I do have libxml-ruby-0.3.8.4 installed:
>
> frizz:~/Projects/solr/client/ruby/solrb edsu$
xml2-config --version
> 2.6.23
> frizz:~/Projects/solr/client/ruby/solrb edsu$ irb
> irb(main):001:0> require 'xml/libxml'
> irb(main):002:0>
>
> //Ed


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )