Merge pull request #7711 from comwanga/fix/fast-test-ci-discovery-7710
What changed, and why it matters
This commit only changes test labels from 'FastTest' to 'Fast' in four test files. It restores which automated tests run in the project's fast/CI test suite. There is no change to production code, user-facing behavior, or security functionality.
No security action needed. This is a test-infrastructure-only change.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff updates xUnit [Trait] attributes on unit tests from [Trait(‘FastTest’,’FastTest’)] to [Trait(‘Fast’,’Fast’)] in BTCPayServer.Tests/EmailsTests.cs, PSBTTests.cs, UnitTest1.cs, and WebhooksTests.cs. This aligns test categorization with the CI filter so these tests are discovered and executed. No application code is 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.