From ea90d8cbab9114cfabf915a1e1035a274739ec0f Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Tue, 20 Apr 2021 13:10:45 +0700 Subject: [PATCH] Moved "benchmark" tests that cannot fail (see #349) to the nightly build to reduce testing time --- .../Language/Bm/CacheSubSequencePerformanceTest.cs | 1 + src/Lucene.Net.Tests/Index/TestTermdocPerf.cs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Lucene.Net.Tests.Analysis.Phonetic/Language/Bm/CacheSubSequencePerformanceTest.cs b/src/Lucene.Net.Tests.Analysis.Phonetic/Language/Bm/CacheSubSequencePerformanceTest.cs index c8b76c6efa..2590c65692 100644 --- a/src/Lucene.Net.Tests.Analysis.Phonetic/Language/Bm/CacheSubSequencePerformanceTest.cs +++ b/src/Lucene.Net.Tests.Analysis.Phonetic/Language/Bm/CacheSubSequencePerformanceTest.cs @@ -28,6 +28,7 @@ public class CacheSubSequencePerformanceTest : LuceneTestCase { [Test] [Slow] + [Nightly] // LUCENENET: Since this is more of a benchmark than a test, moving to Nightly to keep us from buring testing time on it public void Test() { int times = 10000000; diff --git a/src/Lucene.Net.Tests/Index/TestTermdocPerf.cs b/src/Lucene.Net.Tests/Index/TestTermdocPerf.cs index 3401e81c0f..d73b8b663d 100644 --- a/src/Lucene.Net.Tests/Index/TestTermdocPerf.cs +++ b/src/Lucene.Net.Tests/Index/TestTermdocPerf.cs @@ -1,4 +1,4 @@ -using Lucene.Net.Analysis; +using Lucene.Net.Analysis; using Lucene.Net.Analysis.TokenAttributes; using Lucene.Net.Documents; using Lucene.Net.Index.Extensions; @@ -165,6 +165,7 @@ public virtual int DoTest(int iter, int ndocs, int maxTF, float percentDocs) [Test] [Slow] + [Nightly] // LUCENENET: Since this is more of a benchmark than a test, moving to Nightly to keep us from buring testing time on it public virtual void TestTermDocPerf() { // performance test for 10% of documents containing a term