From 3989c5a6c8ad31b24689db7edb46d6975705964b Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Tue, 19 Nov 2024 10:04:39 -0700 Subject: [PATCH] Replace lucene.testSettings.config references with lucene.testsettings.json, #997 (#1035) --- Lucene.Net.sln.DotSettings | 3 ++- src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs | 6 +++--- src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Lucene.Net.sln.DotSettings b/Lucene.Net.sln.DotSettings index 747aae4ad6..6fd109800d 100644 --- a/Lucene.Net.sln.DotSettings +++ b/Lucene.Net.sln.DotSettings @@ -1,3 +1,4 @@  True - True \ No newline at end of file + True + True \ No newline at end of file diff --git a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs index d3c7ec6916..56016c3ffe 100644 --- a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs +++ b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs @@ -100,7 +100,7 @@ namespace Lucene.Net.Util /// test message. /// /// - /// The seed can be configured with a RunSettings file, a lucene.testSettings.config JSON file, + /// The seed can be configured with a RunSettings file, a lucene.testsettings.json JSON file, /// an environment variable, or using at the assembly level. /// It is recommended to configure the culture also, since they are randomly picked from a list /// of cultures installed on a given machine, so the culture will vary from one machine to the next. @@ -128,10 +128,10 @@ namespace Lucene.Net.Util /// [assembly: NUnit.Framework.SetCulture("sw-TZ")] /// /// - ///

lucene.testSettings.config File Configuration Example

+ ///

lucene.testsettings.json File Configuration Example

/// /// - /// Add a file named lucene.testSettings.config to the executable directory or + /// Add a file named lucene.testsettings.json to the executable directory or /// any directory between the executable and the root of the drive with the following contents. /// /// diff --git a/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs b/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs index 9056852124..b88f6e483e 100644 --- a/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs +++ b/src/Lucene.Net.Tests/Index/TestIndexWriterOnJRECrash.cs @@ -175,7 +175,7 @@ public Process ForkTest(string tempDir, int port) "--logger:\"console;verbosity=normal\"", "--", $"RunConfiguration.TargetPlatform={GetTargetPlatform()}", - // LUCENENET NOTE: Since in our CI environment we create a lucene.testSettings.config file + // LUCENENET NOTE: Since in our CI environment we create a lucene.testsettings.json file // for all tests, we need to pass some of these settings as test run parameters to override // for this process. These are read as system properties on the inside of the application. TestRunParameter("assert", "true"),