You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Shad Storhaug (Jira)" <ji...@apache.org> on 2019/12/25 21:09:00 UTC

[jira] [Updated] (LUCENENET-627) Port RandomizedTesting Test Runner

     [ https://issues.apache.org/jira/browse/LUCENENET-627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shad Storhaug updated LUCENENET-627:
------------------------------------
                Flags:   (was: Important)
    Affects Version/s:     (was: Lucene.Net 4.8.0)
             Priority: Minor  (was: Major)

Lowering priority of this and removing the 4.8.0 version, as it is not required for the Lucene.NET release. It might still be useful to do this someday, so I am keeping the issue open.

> Port RandomizedTesting Test Runner
> ----------------------------------
>
>                 Key: LUCENENET-627
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-627
>             Project: Lucene.Net
>          Issue Type: Task
>          Components: Lucene.Net.TestFramework
>            Reporter: Shad Storhaug
>            Priority: Minor
>              Labels: up-for-grabs
>   Original Estimate: 150h
>  Remaining Estimate: 150h
>
> While the test framework can run with the standard NUnit test runner and we have managed to make it work, it is missing the ability to reproduce a random test failure, which is crucial for debugging some of the more complicated random tests. Lucene uses a custom JUnit test runner called [RandomizedTesting|https://github.com/randomizedtesting/randomizedtesting] to accomplish this.
> It also includes some other nice features
> # Ensure when a test fails, the random seeds are included in error messages and logs
> # Code analysis to ensure the tests are setup properly
> # Run tests in a random order to ensure they are not dependent upon each other
> Preliminary analysis shows that the API for NUnit allows building custom test runners and it is a close enough match to implement the functionality. Most likely, this will require a custom adapter as well, so the test runner can integrate into Visual Studio and dotnet test/mstest.
> Do note that without doing some pretty heavy refactoring on the Codec, Directory, and LuceneTestCase classes, it is not possible to run tests in parallel within the same AppDomain because the codecs use a static variable to turn codec impersonation on/off. For now, it would probably be best to run tests serially.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)