Files
bd2/go/cmd/bd2client/dev_command_test.go
T
Flechazo fe67072b7d refactor(all): share core services and streamline launcher workflows
Centralize configuration, logging, database decryption and resource metadata.
Use task dependencies for development, SDK and release builds; move source tools and game downloads to Go with ordered client preparation.
Rename the client to BD2 Launcher, add native icons, and update packaging and SDK checks.
2026-10-14 00:04:21 +08:00

18 lines
563 B
Go

//go:build !release
package main
import (
"testing"
)
func TestDevelopmentPlanSkipsBackendRebuildAndPluginPreparation(t *testing.T) {
args := []string{"--dev", "run", "--plan", "--game-dir", t.TempDir()}
if relaunched, err := relaunchDevelopmentIfNeeded(args); relaunched || err != nil {
t.Fatalf("inspection rebuilt the desktop backend: %v, %v", relaunched, err)
}
if handled, err := runClientDevelopmentCommand(args); !handled || err != nil {
t.Fatalf("inspection attempted to prepare an incomplete game or start its UI: %v, %v", handled, err)
}
}