You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have ported the generators from RandomizedTesting that Lucene.NET needs to support its tests and added this code to the TestFramework (unlike Lucene), both as a static utility class and as extension methods. The generators we have now in the TestFramework are probably enough to cover most random testing use cases for end users.
That said, it would be useful for the .NET community at large if the random generators were made into a separate library so randomized test data can be easily generated without referencing the Lucene.NET test framework. The latest version of RandomizedTesting has more options for generating random data than what we have ported.
The library should be named after RandomizedTesting (possibly RandomizedTesting.Generators) so that someday if the test runner is also ported (see #264), there is a logical way to integrate it.
This task would make a great little project for anyone who wants to contribute to the Lucene.NET effort.
Given the fact that these generators have evolved over time and don't likely have any breaking backward changes, porting the latest released version of the generators and their associated tests would probably be the right approach. Most likely any differences in behavior are bug fixes and important design changes that would be better to have than to not have.
In the case of benchmarks, using random generators is useful because it allows us to create repeatable benchmarks with large amounts of data without having to store the data in our repo.
We have ported the generators from RandomizedTesting that Lucene.NET needs to support its tests and added this code to the TestFramework (unlike Lucene), both as a static utility class and as extension methods. The generators we have now in the TestFramework are probably enough to cover most random testing use cases for end users.
That said, it would be useful for the .NET community at large if the random generators were made into a separate library so randomized test data can be easily generated without referencing the Lucene.NET test framework. The latest version of RandomizedTesting has more options for generating random data than what we have ported.
The library should be named after RandomizedTesting (possibly RandomizedTesting.Generators) so that someday if the test runner is also ported (see #264), there is a logical way to integrate it.
This task would make a great little project for anyone who wants to contribute to the Lucene.NET effort.
JIRA link - [LUCENENET-635] created by nightowl888
The text was updated successfully, but these errors were encountered: