test: restore CI coverage for seven fast tests
What changed, and why it matters
This commit only renames test category labels from 'FastTest' to 'Fast' in seven automated tests. It does not change any production code, user-facing behavior, or security logic. The change is purely to restore these tests running in the project's continuous integration (CI) pipeline.
No security action needed. This is a test-only maintenance change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates the xUnit [Trait] attribute on seven test methods across four test files from [Trait(‘FastTest’,’FastTest’)] to [Trait(‘Fast’,’Fast’)]. This aligns the tests with the CI filter that selects fast tests, ensuring they run again. No application code, validation logic, cryptography, or access controls are modified.
Changed components
BTCPayServer.Tests/EmailsTests.csBTCPayServer.Tests/PSBTTests.csBTCPayServer.Tests/UnitTest1.csBTCPayServer.Tests/WebhooksTests.csInspect captured patch +7 / −7
### BTCPayServer.Tests/EmailsTests.cs
@@ -24,7 +24,7 @@ namespace BTCPayServer.Tests;
public class EmailsTests(ITestOutputHelper helper) : UnitTestBase(helper)
{
[Fact]
- [Trait("FastTest", "FastTest")]
+ [Trait("Fast", "Fast")]
public void CanParseEmailDestination()
{
var vm = new StoreEmailRuleViewModel();
@@ -34,7 +34,7 @@ public void CanParseEmailDestination()
}
[Theory]
- [Trait("FastTest", "FastTest")]
+ [Trait("Fast", "Fast")]
[InlineData("Invoice.Metadata.recipient", "first@example.com", 1)]
[InlineData("Invoice.Metadata.recipient", "first@example.com,second@example.com", 0)]
[InlineData("Invoice.Buyer.MailboxAddress", "first@example.com,second@example.com", 0)]
@@ -62,7 +62,7 @@ public void TemplateNameControlsRecipientFanout(string placeholder, string value
}
[Fact]
- [Trait("FastTest", "FastTest")]
+ [Trait("Fast", "Fast")]
public void LimitsRecipientsAfterTemplateRendering()
{
var renderedRecipients = string.Join(",",
### BTCPayServer.Tests/PSBTTests.cs
@@ -10,7 +10,7 @@ namespace BTCPayServer.Tests
public class PSBTTests(ITestOutputHelper helper) : UnitTestBase(helper)
{
[Fact]
- [Trait("FastTest", "FastTest")]
+ [Trait("Fast", "Fast")]
public async Task RejectsOversizedTextualPSBTBeforeParsing()
{
var modelState = new ModelStateDictionary();
### BTCPayServer.Tests/UnitTest1.cs
@@ -1141,7 +1141,7 @@ await tester.Page.FillAsync($"#{source}_Script","""
}
[Fact]
- [Trait("FastTest", "FastTest")]
+ [Trait("Fast", "Fast")]
public void TestMailTemplate()
{
var template = new TextTemplate("Hello mister {Name.Firstname} {Name.Lastname} !");
### BTCPayServer.Tests/WebhooksTests.cs
@@ -32,7 +32,7 @@ namespace BTCPayServer.Tests;
public class WebhooksTests(ITestOutputHelper log) : UnitTestBase(log)
{
[Fact]
- [Trait("FastTest", "FastTest")]
+ [Trait("Fast", "Fast")]
public void WebhookListRedactsCredentialsAndNullFiltersAreSafe()
{
var webhook = new WebhooksViewModel.WebhookViewModel
@@ -46,7 +46,7 @@ public void WebhookListRedactsCredentialsAndNullFiltersAreSafe()
}
[Fact]
- [Trait("FastTest", "FastTest")]
+ [Trait("Fast", "Fast")]
public async Task CustomerEmailHidesInternalRecipients()
{
var invoice = new InvoiceEntityWhy this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.