paulirwin opened a new issue, #999: URL: https://github.com/apache/lucenenet/issues/999
### Is there an existing issue for this? - [X] I have searched the existing issues ### Task description When a unit test fails, it prints a message instructing the user on how they can set the random seed and culture to reproduce the test. The output today looks like: ``` To reproduce this test result: Option 1: Apply the following assembly-level attributes: [assembly: Lucene.Net.Util.RandomSeed("0x9a2b7430d6d33f0d")] [assembly: NUnit.Framework.SetCulture("en-IE")] Option 2: Use the following .runsettings file: <RunSettings> <TestRunParameters> <Parameter name="tests:seed" value="0x9a2b7430d6d33f0d" /> <Parameter name="tests:culture" value="en-IE" /> </TestRunParameters> </RunSettings> See the .runsettings documentation at: https://docs.microsoft.com/en-us/visualstudio/test/configure-unit-tests-by-using-a-dot-runsettings-file. ``` The .runsettings option is more verbose than the lucene.testsettings.json version, it requires structuring the XML properly to work, and has the extra documentation link that could be removed with the JSON approach. This message could instead look like: ``` To reproduce this test result: Option 1: Apply the following assembly-level attributes: [assembly: Lucene.Net.Util.RandomSeed("0x9a2b7430d6d33f0d")] [assembly: NUnit.Framework.SetCulture("en-IE")] Option 2: Create the following lucene.testsettings.json file somewhere between the test assembly and your root drive: { "tests": { "seed": "0x9a2b7430d6d33f0d", "culture": "en-IE" } } ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org