Skip to content

Commit d142b30

Browse files
authored
Rename ProviderCompatTest.run() -> ProviderCompatTest.runTest() (#56)
### Motivation Fixes #35, which brought up a good point that `run()` wasn't a good name for a compat test method to actually run tests. ### Modifications Renamed to `runTest()`. ### Result A less confusing method name. ### Test Plan Ran tests locally.
1 parent 5932a13 commit d142b30

12 files changed

+13
-13
lines changed

Sources/ConfigurationTesting/ProviderCompatTest.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import ConfigurationTestingInternal
2929
/// ```swift
3030
/// let provider = MyCustomProvider()
3131
/// let test = ProviderCompatTest(provider: provider)
32-
/// try await test.run()
32+
/// try await test.runTest()
3333
/// ```
3434
///
3535
/// ## Required Test Data
@@ -105,7 +105,7 @@ public struct ProviderCompatTest: Sendable {
105105
/// - Snapshot watching (`watchSnapshot()`)
106106
///
107107
/// - Throws: Test failures or provider errors encountered during testing.
108-
public func run() async throws {
108+
public func runTest() async throws {
109109
try value()
110110
try await fetchValue()
111111
try await watchValue()

Tests/ConfigurationTests/CommandLineArgumentsProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct CommandLineArgumentsProviderTests {
7272

7373
@available(Configuration 1.0, *)
7474
@Test func compat() async throws {
75-
try await ProviderCompatTest(provider: provider).run()
75+
try await ProviderCompatTest(provider: provider).runTest()
7676
}
7777

7878
@available(Configuration 1.0, *)

Tests/ConfigurationTests/DirectoryFilesProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,6 @@ struct DirectoryFilesProviderTests {
100100
"other.byteChunky.array": .byteChunkArray([.magic2]),
101101
])
102102
)
103-
.run()
103+
.runTest()
104104
}
105105
}

Tests/ConfigurationTests/EnvironmentVariablesProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ struct EnvironmentVariablesProviderTests {
7070

7171
@available(Configuration 1.0, *)
7272
@Test func compat() async throws {
73-
try await ProviderCompatTest(provider: provider).run()
73+
try await ProviderCompatTest(provider: provider).runTest()
7474
}
7575

7676
@available(Configuration 1.0, *)

Tests/ConfigurationTests/InMemoryProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,6 @@ struct InMemoryProviderTests {
6767

6868
@available(Configuration 1.0, *)
6969
@Test func compat() async throws {
70-
try await ProviderCompatTest(provider: provider).run()
70+
try await ProviderCompatTest(provider: provider).runTest()
7171
}
7272
}

Tests/ConfigurationTests/JSONProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@ struct JSONProviderTests {
4949

5050
@available(Configuration 1.0, *)
5151
@Test func compat() async throws {
52-
try await ProviderCompatTest(provider: provider).run()
52+
try await ProviderCompatTest(provider: provider).runTest()
5353
}
5454
}

Tests/ConfigurationTests/KeyMappingProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,6 @@ struct KeyMappingProviderTests {
178178

179179
// Use a passtrhough mapper so the compat test can find the expected values
180180
let mapper = KeyMappingProvider(upstream: upstream) { $0 }
181-
try await ProviderCompatTest(provider: mapper).run()
181+
try await ProviderCompatTest(provider: mapper).runTest()
182182
}
183183
}

Tests/ConfigurationTests/MultiProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ struct MultiProviderTests {
128128
@available(Configuration 1.0, *)
129129
@Test func compat() async throws {
130130
let multiProvider = MultiProvider(providers: providers)
131-
try await ProviderCompatTest(provider: MultiProviderTestShims(multiProvider: multiProvider)).run()
131+
try await ProviderCompatTest(provider: MultiProviderTestShims(multiProvider: multiProvider)).runTest()
132132
}
133133

134134
@available(Configuration 1.0, *)

Tests/ConfigurationTests/MutableInMemoryProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct MutableInMemoryProviderTests {
6969
@available(Configuration 1.0, *)
7070
@Test func compat() async throws {
7171
let provider = makeProvider()
72-
try await ProviderCompatTest(provider: provider).run()
72+
try await ProviderCompatTest(provider: provider).runTest()
7373
}
7474

7575
@available(Configuration 1.0, *)

Tests/ConfigurationTests/ReloadingJSONProviderTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ struct ReloadingJSONProviderTests {
4444
@available(Configuration 1.0, *)
4545
@Test func compat() async throws {
4646
let provider = try await ReloadingJSONProvider(filePath: jsonConfigFile)
47-
try await ProviderCompatTest(provider: provider).run()
47+
try await ProviderCompatTest(provider: provider).runTest()
4848
}
4949

5050
@available(Configuration 1.0, *)

0 commit comments

Comments
 (0)