mirror of
https://github.com/phranck/TUIkit.git
synced 2026-05-21 09:50:35 +00:00
Fix: Add proper init() for struct test suites instead of disabling
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user