Skip to content

Commit

Permalink
List cloud tests as they run
Browse files Browse the repository at this point in the history
  • Loading branch information
mausch committed Sep 19, 2021
1 parent 2380867 commit 0091fb0
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions SolrNet.Cloud.Tests/CollectionsAdminTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Linq;
using System.Reflection;
using Xunit;
using SolrNet.Cloud.CollectionsAdmin;
using SolrNet.Impl;
Expand All @@ -8,6 +9,7 @@
using System.Threading;
using System.Threading.Tasks;
using SolrNet.Tests.Integration;
using Xunit.Abstractions;

namespace SolrNet.Cloud.Tests
{
Expand All @@ -34,6 +36,14 @@ public class CollectionsAdminTests : IAsyncLifetime
private const int ZOOKEEPER_REFRESH_PERIOD_MSEC = 2000;
private ISolrCloudStateProvider solrCloudStateProvider = null;

public CollectionsAdminTests(ITestOutputHelper output)
{
// https://github.com/xunit/xunit/issues/416#issuecomment-378512739
var type = output.GetType();
var testMember = type.GetField("test", BindingFlags.Instance | BindingFlags.NonPublic);
var test = (ITest)testMember.GetValue(output);
Console.WriteLine("Starting " + test.DisplayName);
}

[Fact]
public async Task ReloadCollection()
Expand Down
3 changes: 2 additions & 1 deletion cloud_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ run_tests() {
sleep 0.5
done

dotnet build -v=quiet
echo -e "\n\rRunning integration tests..."
dotnet test SolrNet.Cloud.Tests --filter 'Category=Integration'
dotnet test SolrNet.Cloud.Tests --filter 'Category=Integration' --no-build --logger "console;verbosity=detailed"
ret=$?

echo -e "\n\rStopping Solr..."
Expand Down

0 comments on commit 0091fb0

Please sign in to comment.