package main import ( "testing" ) func TestAppStart(t *testing.T) { // Test that the application can be instantiated // This is a simple smoke test to verify the app compiles and starts // Parse default CLI args cliArgs, err := ParseCLIArgs() if err != nil { t.Fatalf("Failed to parse CLI args: %v", err) } if cliArgs == nil { t.Fatal("CLI args should not be nil") } // Test config loading cfg, err := LoadConfig(cliArgs) if err != nil { t.Fatalf("Failed to load config: %v", err) } if cfg == nil { t.Fatal("Config should not be nil") } // Test that debug mode works cfg.GUI = false if !cfg.GUI { // Debug mode - should not error } // Test that GUI mode is enabled by default cfg.GUI = true if !cfg.GUI { t.Fatal("GUI mode should be enabled") } }