Fix: Add proper init() for struct test suites instead of disabling

This commit is contained in:
phranck
2026-02-14 20:36:32 +01:00
parent 91a06fecef
commit a3add15fed
2 changed files with 8 additions and 3 deletions
@@ -16,9 +16,9 @@ import Testing
/// 1. Every key in the enum exists in the English translation file
/// 2. No extra keys are in the translation files that don't exist in the enum
/// 3. All enum keys are actually used (no dead code)
@Suite("LocalizationKeyConsistency", .disabled("Disabled: Debugging test suite issues"))
@Suite("LocalizationKeyConsistency")
struct LocalizationKeyConsistencyTests {
private let englishTranslations: [String: String]
private var englishTranslations: [String: String] = [:]
init() {
self.englishTranslations = Self.loadTranslations()
@@ -10,10 +10,15 @@ import Testing
// MARK: - Localization Service Tests
@Suite("LocalizationService", .disabled("Disabled: Debugging test suite issues"))
@Suite("LocalizationService")
struct LocalizationServiceTests {
let fileManager = FileManager.default
init() {
// Clean up any previous test state on init
try? fileManager.removeItem(atPath: Self.configFilePath())
}
// MARK: - Bundle Loading Tests
@Test("Loads English translations from bundle")