Skip to content

Commit 7a6aeb1

Browse files
committed
refactor: remove redundant snapshot config from child suites
Remove individual .snapshots(record: ...) from all child test suites since they inherit the configuration from the parent SnapshotTests suite. All child suites now use simple @suite declarations, making the test configuration centralized and easier to maintain.
1 parent b6f0d46 commit 7a6aeb1

File tree

64 files changed

+227
-416
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+227
-416
lines changed

Tests/HTMLElementsPointFreeHTML Tests/a Anchor Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"Anchor Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("Anchor Element Tests")
129
struct AnchorTests {
1310
@Test("Basic anchor renders correctly")
1411
func basicAnchorRendersCorrectly() {

Tests/HTMLElementsPointFreeHTML Tests/address Contact Address Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"Address Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("Address Element Tests")
129
struct AddressTests {
1310
@Test("Basic address renders correctly")
1411
func basicAddressRendersCorrectly() {

Tests/HTMLElementsPointFreeHTML Tests/area Image Map Area Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"Area Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("Area Element Tests")
129
struct AreaTests {
1310
@Test("Basic area renders correctly")
1411
func basicAreaRendersCorrectly() {

Tests/HTMLElementsPointFreeHTML Tests/article Article Contents Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"Article Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("Article Element Tests")
129
struct ArticleTests {
1310
@Test("Basic article renders correctly")
1411
func basicArticleRendersCorrectly() {

Tests/HTMLElementsPointFreeHTML Tests/aside Aside Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"Aside Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("Aside Element Tests")
129
struct AsideTests {
1310
@Test("Basic aside renders correctly")
1411
func basicAsideRendersCorrectly() {

Tests/HTMLElementsPointFreeHTML Tests/audio Embed Audio Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"Embed Audio Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("Embed Audio Element Tests")
129
struct AudioTests {
1310
@Test("Basic audio renders correctly")
1411
func basicAudioRendersCorrectly() {

Tests/HTMLElementsPointFreeHTML Tests/b Bring Attention To Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"B Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("B Element Tests")
129
struct BTests {
1310
@Test("Basic b element renders correctly")
1411
func basicBElementRendersCorrectly() {

Tests/HTMLElementsPointFreeHTML Tests/base Document Base URL Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"Base Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("Base Element Tests")
129
struct BaseTests {
1310
@Test("Base with href renders correctly")
1411
func baseWithHrefRendersCorrectly() {

Tests/HTMLElementsPointFreeHTML Tests/blockquote Block Quotation Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"Block Quotation Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("Block Quotation Element Tests")
129
struct BlockQuoteTests {
1310
@Test("Basic blockquote renders correctly")
1411
func basicBlockquoteRendersCorrectly() {

Tests/HTMLElementsPointFreeHTML Tests/body Document Body Tests.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ import PointFreeHTMLTestSupport
55
import Testing
66

77
extension SnapshotTests {
8-
@Suite(
9-
"Document Body Element Tests",
10-
.snapshots(record: .failed)
11-
)
8+
@Suite("Document Body Element Tests")
129
struct BodyTests {
1310
@Test("Basic body renders correctly")
1411
func basicBodyRendersCorrectly() {

0 commit comments

Comments
 (0)