1
0
mirror of https://github.com/bitwarden/server synced 2025-12-20 18:23:44 +00:00
Files
server/test/Core.Test/AutoFixture/Attributes/CiSkippedTheory.cs
2025-11-18 16:12:52 -05:00

17 lines
523 B
C#

using System.Runtime.CompilerServices;
namespace Bit.Core.Test.AutoFixture.Attributes;
public sealed class CiSkippedTheory : Xunit.TheoryAttribute
{
private static bool IsGithubActions() => Environment.GetEnvironmentVariable("CI") != null;
public CiSkippedTheory([CallerFilePath] string? sourceFilePath = null, [CallerLineNumber] int sourceLineNumber = -1) : base(sourceFilePath, sourceLineNumber)
{
if (IsGithubActions())
{
Skip = "Ignore during CI builds";
}
}
}