mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 17:11:10 +00:00
chore: excludes test classes from code coverage
This commit is contained in:
1 parent
c4135dbec9
commit
85129187b3
6 files changed
+12
No files matched your search
+2
@@ -2,6 +2,7 @@
|
|||||||
using Lumina.Contracts.Fixtures.Core.Responses.FileSystemManagement.Common;
|
using Lumina.Contracts.Fixtures.Core.Responses.FileSystemManagement.Common;
|
||||||
using Lumina.Presentation.Api.Fixtures.Core.Endpoints.FileSystemManagement;
|
using Lumina.Presentation.Api.Fixtures.Core.Endpoints.FileSystemManagement;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
#endregion
|
#endregion
|
||||||
@@ -12,6 +13,7 @@ namespace Lumina.Presentation.Api.IntegrationTests.Common.Setup;
|
|||||||
/// Marks a test to be skipped when the file system does not support the <see cref="FileAttributes.Hidden"/> attribute.
|
/// Marks a test to be skipped when the file system does not support the <see cref="FileAttributes.Hidden"/> attribute.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AttributeUsage(AttributeTargets.Method)]
|
[AttributeUsage(AttributeTargets.Method)]
|
||||||
|
[ExcludeFromCodeCoverage]
|
||||||
public sealed class SkipWhenHiddenAttributeNotSupportedFactAttribute : FactAttribute
|
public sealed class SkipWhenHiddenAttributeNotSupportedFactAttribute : FactAttribute
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
+2
@@ -7,6 +7,7 @@ using Lumina.Domain.Core.BoundedContexts.WrittenContentLibraryBoundedContext.Boo
|
|||||||
using Lumina.Domain.Fixtures.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate;
|
using Lumina.Domain.Fixtures.Core.BoundedContexts.WrittenContentLibraryBoundedContext.BookLibraryAggregate;
|
||||||
using Lumina.Domain.SharedKernel.Common.Enums.BookLibrary;
|
using Lumina.Domain.SharedKernel.Common.Enums.BookLibrary;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
|
namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenContentLibrary.BookLibrary.Books;
|
||||||
@@ -14,6 +15,7 @@ namespace Lumina.Application.UnitTests.Common.Mapping.MediaLibrary.WrittenConten
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains unit tests for the <see cref="BookMetadataDtoMapping"/> class.
|
/// Contains unit tests for the <see cref="BookMetadataDtoMapping"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ExcludeFromCodeCoverage]
|
||||||
public class BookMetadataDtoMappingTests
|
public class BookMetadataDtoMappingTests
|
||||||
{
|
{
|
||||||
private readonly BookFixture _bookFixture = new();
|
private readonly BookFixture _bookFixture = new();
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
using Lumina.Application.Common.Infrastructure.Validation;
|
using Lumina.Application.Common.Infrastructure.Validation;
|
||||||
using Lumina.Domain.Common.Primitives;
|
using Lumina.Domain.Common.Primitives;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
namespace Lumina.Application.UnitTests.Common.Setup;
|
namespace Lumina.Application.UnitTests.Common.Setup;
|
||||||
@@ -9,6 +10,7 @@ namespace Lumina.Application.UnitTests.Common.Setup;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Validator extension methods for <see cref="IValidator{TRequest}"/> for unit tests.
|
/// Validator extension methods for <see cref="IValidator{TRequest}"/> for unit tests.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ExcludeFromCodeCoverage]
|
||||||
public static class ValidatorTestExtensions
|
public static class ValidatorTestExtensions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
+2
@@ -6,6 +6,7 @@ using Lumina.DataAccess.Core.Repositories.Plugins;
|
|||||||
using Lumina.DataAccess.Core.UoW;
|
using Lumina.DataAccess.Core.UoW;
|
||||||
using Lumina.Domain.Common.Primitives;
|
using Lumina.Domain.Common.Primitives;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -16,6 +17,7 @@ namespace Lumina.DataAccess.UnitTests.Core.Repositories.Plugins;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains unit tests for the <see cref="LibraryMetadataProviderConfigurationRepository"/> class.
|
/// Contains unit tests for the <see cref="LibraryMetadataProviderConfigurationRepository"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ExcludeFromCodeCoverage]
|
||||||
public class LibraryMetadataProviderConfigurationRepositoryTests
|
public class LibraryMetadataProviderConfigurationRepositoryTests
|
||||||
{
|
{
|
||||||
private readonly LuminaDbContext _mockContext;
|
private readonly LuminaDbContext _mockContext;
|
||||||
|
|||||||
+2
@@ -7,6 +7,7 @@ using Lumina.DataAccess.Core.UoW;
|
|||||||
using Lumina.Domain.Common.Errors;
|
using Lumina.Domain.Common.Errors;
|
||||||
using Lumina.Domain.Common.Primitives;
|
using Lumina.Domain.Common.Primitives;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
@@ -17,6 +18,7 @@ namespace Lumina.DataAccess.UnitTests.Core.Repositories.Plugins;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains unit tests for the <see cref="PluginRepository"/> class.
|
/// Contains unit tests for the <see cref="PluginRepository"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ExcludeFromCodeCoverage]
|
||||||
public class PluginRepositoryTests
|
public class PluginRepositoryTests
|
||||||
{
|
{
|
||||||
private readonly LuminaDbContext _mockContext;
|
private readonly LuminaDbContext _mockContext;
|
||||||
|
|||||||
+2
@@ -5,6 +5,7 @@ using Lumina.Presentation.Web.Fixtures.Common.TestHelpers;
|
|||||||
using Lumina.Presentation.Web.Fixtures.Core.Endpoints.Common;
|
using Lumina.Presentation.Web.Fixtures.Core.Endpoints.Common;
|
||||||
using Microsoft.AspNetCore.Http;
|
using Microsoft.AspNetCore.Http;
|
||||||
using NSubstitute;
|
using NSubstitute;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
#endregion
|
#endregion
|
||||||
@@ -14,6 +15,7 @@ namespace Lumina.Presentation.Web.UnitTests.Core.Endpoints.Common;
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Contains unit tests for the <see cref="Lumina.Presentation.Web.Core.Endpoints.Common.BaseEndpoint"/> class.
|
/// Contains unit tests for the <see cref="Lumina.Presentation.Web.Core.Endpoints.Common.BaseEndpoint"/> class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[ExcludeFromCodeCoverage]
|
||||||
public class BaseEndpointTests
|
public class BaseEndpointTests
|
||||||
{
|
{
|
||||||
private readonly BaseEndpointFixture _sut;
|
private readonly BaseEndpointFixture _sut;
|
||||||
|
|||||||
Reference in new issue
Block a user