Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nkz-soft committed Jan 22, 2025
1 parent f88490d commit 549e2e0
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using Xunit.Sdk;
using Xunit.v3;

internal class TestCaseOrderer : ITestCaseOrderer
public class TestCaseOrderer : ITestCaseOrderer
{
public IReadOnlyCollection<TTestCase> OrderTestCases<TTestCase>(IReadOnlyCollection<TTestCase> testCases) where TTestCase : notnull, ITestCase
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[assembly: CollectionBehavior(DisableTestParallelization = true)]
using NKZSoft.Template.Common.Tests.Ordering;

[assembly: CollectionBehavior(DisableTestParallelization = true)]
[assembly: TestCollectionOrderer(typeof(TestCaseOrderer))]

namespace NKZSoft.Template.Presentation.GraphQL.Tests.Service;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
[assembly: CollectionBehavior(DisableTestParallelization = true)]
using NKZSoft.Template.Common.Tests.Ordering;

[assembly: CollectionBehavior(DisableTestParallelization = true)]
[assembly: TestCollectionOrderer(typeof(TestCaseOrderer))]

namespace NKZSoft.Template.Presentation.Grpc.Tests.Services;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
using NKZSoft.Template.Common.Tests.Ordering;

[assembly: CollectionBehavior(DisableTestParallelization = true)]
[assembly: TestCollectionOrderer(typeof(TestCaseOrderer))]

namespace NKZSoft.Template.Presentation.Rest.Tests.Controllers;

using Common;
using Grpc.Models.ToDoItem;
using NKZSoft.Template.Presentation.Rest.Models.Result;
using RestSharp;
using Template.Common.Tests.Ordering;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

global using NKZSoft.Template.Domain.AggregatesModel.ToDoAggregates.Entities;
global using NKZSoft.Template.Common.Tests;
global using NKZSoft.Template.Application.Models;
global using NKZSoft.Template.Application.Common.Interfaces;
global using NKZSoft.Template.Application.Common.Paging;
global using NKZSoft.Template.Application.TodoItems.Commands.Create;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using NKZSoft.Template.Common.Tests.Ordering;

[assembly: TestCollectionOrderer(typeof(TestCaseOrderer))]
[assembly: CollectionBehavior(DisableTestParallelization = true)]

namespace NKZSoft.Template.Presentation.SignalR.Tests.Hubs;
Expand Down

0 comments on commit 549e2e0

Please sign in to comment.