You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "michael herndon (JIRA)" <ji...@apache.org> on 2011/05/27 20:07:47 UTC
[Lucene.Net] [jira] [Created] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
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
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
[Lucene.Net] [jira] [Commented] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "michael herndon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059635#comment-13059635 ]
michael herndon commented on LUCENENET-418:
-------------------------------------------
I'll take a look. Which build are you using, release or debug?
> 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
[Lucene.Net] [jira] [Commented] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059955#comment-13059955 ]
Digy commented on LUCENENET-418:
--------------------------------
It fails in both builds.
> 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
[Lucene.Net] [jira] [Resolved] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "michael herndon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
michael herndon resolved LUCENENET-418.
---------------------------------------
Resolution: Fixed
Fix Version/s: Lucene.Net 2.9.4g
this issue should now be resolved.
> 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
[Lucene.Net] [jira] [Reopened] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Digy reopened LUCENENET-418:
----------------------------
> 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
[Lucene.Net] [jira] [Commented] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059621#comment-13059621 ]
Digy commented on LUCENENET-418:
--------------------------------
Lucene.Net.Index.TestParallelReader.TestDocument also started to fail.
DIGY
> 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
[Lucene.Net] [jira] [Commented] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "michael herndon (JIRA)" <ji...@apache.org>.
[ 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
[Lucene.Net] [jira] [Commented] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059616#comment-13059616 ]
Digy commented on LUCENENET-418:
--------------------------------
Hi Michael,
When I run unit tests, I get the following exception
Lucene.Net.Index.TestBackwardsCompatibility.TestIndexOldIndex:
System.IO.DirectoryNotFoundException : Could not find a part of the path '<<<svnroot>>>\branches\test\core\index\index.19.cfs.zip'.
It think it should be '<<<svnroot>>>\branches\Lucene.Net_2_9_4g\test\core\Index'
DIGY
> 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
[Lucene.Net] [jira] [Resolved] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "michael herndon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
michael herndon resolved LUCENENET-418.
---------------------------------------
Resolution: Fixed
> 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
[Lucene.Net] [jira] [Commented] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "michael herndon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058781#comment-13058781 ]
michael herndon commented on LUCENENET-418:
-------------------------------------------
r1132085 under the Lucene.Net_2_9_4g branch. The exception was removed. The static constructor still exists, but will be re-factored out at a later date. The paths for the TestBackwardsCompatability tests were also fixed.
> 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
> 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
[Lucene.Net] [jira] [Commented] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13059624#comment-13059624 ]
Digy commented on LUCENENET-418:
--------------------------------
Sorry, my bad.
Lucene.Net.Index.TestParallelReader.TestDocument passes
DIGY
> 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
[Lucene.Net] [jira] [Commented] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "Digy (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061125#comment-13061125 ]
Digy commented on LUCENENET-418:
--------------------------------
It works! Thanks.
DIGY
> 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
[Lucene.Net] [jira] [Closed] (LUCENENET-418) LuceneTestCase should not have a
static method could throw exceptions.
Posted by "michael herndon (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/LUCENENET-418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
michael herndon closed LUCENENET-418.
-------------------------------------
this issue should now be closed
> 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