Fixed test case for the Persistence package. (#15)
This PR contains the work done to amend a test case within the Persistence tests target that was failing. Reviewed-on: rock-n-code/loud-amsterdam#15 Co-authored-by: Javier Cicchelli <javier@rock-n-code.com> Co-committed-by: Javier Cicchelli <javier@rock-n-code.com>
This commit is contained in:
@@ -112,14 +112,17 @@ private extension ServiceTests {
|
|||||||
driver: Persistence.Driver,
|
driver: Persistence.Driver,
|
||||||
revertAfter: Bool = false
|
revertAfter: Bool = false
|
||||||
) async throws {
|
) async throws {
|
||||||
|
let prepareDB = PrepareDB()
|
||||||
let service = Service(
|
let service = Service(
|
||||||
driver: driver,
|
driver: driver,
|
||||||
logger: Logger(label: "test")
|
logger: Logger(label: "test")
|
||||||
)
|
)
|
||||||
|
|
||||||
let fluent = service()
|
let fluent = service()
|
||||||
|
|
||||||
do {
|
do {
|
||||||
await registerMigrations(fluent)
|
await prepareDB(for: fluent)
|
||||||
|
|
||||||
try await fluent.migrate()
|
try await fluent.migrate()
|
||||||
|
|
||||||
let repository = ExampleRepository(fluent: fluent)
|
let repository = ExampleRepository(fluent: fluent)
|
||||||
|
|||||||
@@ -1,54 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Scheme
|
|
||||||
LastUpgradeVersion = "2700"
|
|
||||||
version = "1.7">
|
|
||||||
<BuildAction
|
|
||||||
parallelizeBuildables = "YES"
|
|
||||||
buildImplicitDependencies = "YES"
|
|
||||||
buildArchitectures = "Automatic">
|
|
||||||
</BuildAction>
|
|
||||||
<TestAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
||||||
shouldAutocreateTestPlan = "YES">
|
|
||||||
<Testables>
|
|
||||||
<TestableReference
|
|
||||||
skipped = "NO">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "WebsiteLibraryTests"
|
|
||||||
BuildableName = "WebsiteLibraryTests"
|
|
||||||
ReferencedContainer = "container:">
|
|
||||||
</BuildableReference>
|
|
||||||
</TestableReference>
|
|
||||||
</Testables>
|
|
||||||
</TestAction>
|
|
||||||
<LaunchAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
launchStyle = "0"
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
|
||||||
debugDocumentVersioning = "YES"
|
|
||||||
debugServiceExtension = "internal"
|
|
||||||
allowLocationSimulation = "YES"
|
|
||||||
queueDebuggingEnabled = "No">
|
|
||||||
</LaunchAction>
|
|
||||||
<ProfileAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
||||||
savedToolIdentifier = ""
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
debugDocumentVersioning = "YES">
|
|
||||||
</ProfileAction>
|
|
||||||
<AnalyzeAction
|
|
||||||
buildConfiguration = "Debug">
|
|
||||||
</AnalyzeAction>
|
|
||||||
<ArchiveAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
revealArchiveInOrganizer = "YES">
|
|
||||||
</ArchiveAction>
|
|
||||||
</Scheme>
|
|
||||||
@@ -31,6 +31,20 @@
|
|||||||
"identifier" : "WebsiteLibraryTests",
|
"identifier" : "WebsiteLibraryTests",
|
||||||
"name" : "WebsiteLibraryTests"
|
"name" : "WebsiteLibraryTests"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target" : {
|
||||||
|
"containerPath" : "container:..\/Localization",
|
||||||
|
"identifier" : "LocalizationTests",
|
||||||
|
"name" : "LocalizationTests"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"target" : {
|
||||||
|
"containerPath" : "container:",
|
||||||
|
"identifier" : "PersistenceTests",
|
||||||
|
"name" : "PersistenceTests"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version" : 1
|
"version" : 1
|
||||||
|
|||||||
Reference in New Issue
Block a user