lucenenet-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "michael herndon (JIRA)" <j...@apache.org>
Subject [Lucene.Net] [jira] [Commented] (LUCENENET-418) LuceneTestCase should not have a static method could throw exceptions.
Date Wed, 06 Jul 2011 22:47:16 GMT

    [ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13060892#comment-13060892
] 

michael herndon commented on LUCENENET-418:
-------------------------------------------

The last commit may or may not help.  I need to write some tests either way.  I ran the tests
that were broken under nunit and like before they were green on my machine, but there could
be a factor that I'm not accounting for or missing.  

The tests should be in tomorrow sometime.  

> LuceneTestCase should not have a static method could throw exceptions.  
> ------------------------------------------------------------------------
>
>                 Key: LUCENENET-418
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-418
>             Project: Lucene.Net
>          Issue Type: Bug
>          Components: Lucene.Net Test
>    Affects Versions: Lucene.Net 3.x
>         Environment: Linux, OSX, etc 
>            Reporter: michael herndon
>            Assignee: michael herndon
>              Labels: test
>             Fix For: Lucene.Net 2.9.4g
>
>   Original Estimate: 2m
>  Remaining Estimate: 2m
>
> Throwing an exception in a base classes for 90% tests in a static method makes it hard
to debug the issue in nunit.
> The test results came back saying that TestFixtureSetup was causing an issue even though
it was the Static Constructor causing problems and this then propagates to all the tests that
stem from LuceneTestCase. 
> The TEMP_DIR needs to be moved to a static util class as a property or even a mixin method.
 This caused me hours to debug and figure out the real issue as the underlying exception method
never bubbled up.  

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message